/* ==========================================================================
   DGT Solutions — Design System
   Palette (matched to official logo, Aug 2026 update):
     --ink        #17101F   body text / near-black plum
     --purple     #874D98   brand purple (primary)
     --purple-dk  #472762   deep violet (dark backgrounds)
     --purple-lt  #F8F3F9   lilac tint (alt section backgrounds)
     --gold       #C08A28   signal accent (stats, active map nodes)
     --paper      #FFFFFF   page background
   Type:
     Display  — Space Grotesk (modern geometric grotesk, headline personality)
     Body     — Inter
     Mono     — JetBrains Mono (data, eyebrows, reference codes)
   ========================================================================== */

:root{
  --ink: #17101F;
  --ink-soft: #4A4353;
  --purple: #874D98;
  --purple-hi: #A570AE;
  --purple-dk: #472762;
  --purple-dk2: #2A1740;
  --purple-lt: #F8F3F9;
  --purple-line: #E5D8E9;
  --gold: #C08A28;
  --gold-hi: #D9A54A;
  --teal: #1F7A6C;
  --rose: #B33F62;
  --blue: #3D6FB4;
  --paper: #FFFFFF;
  --paper-dim: #FBFAFC;
  --line: #E7E1EF;

  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(23,16,31,0.06), 0 1px 1px rgba(23,16,31,0.04);
  --shadow-md: 0 8px 24px rgba(42,18,69,0.10), 0 2px 6px rgba(42,18,69,0.06);
  --shadow-lg: 0 24px 64px rgba(42,18,69,0.16), 0 4px 12px rgba(42,18,69,0.08);

  --ease: cubic-bezier(.22,.68,0,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p,figure{ margin: 0; }
button{ font-family: inherit; }

:focus-visible{
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-wide{ max-width: 1440px; }

/* ---------- Typography ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.eyebrow.on-dark{ color: var(--gold-hi); }

h1,h2,h3,.font-display{ font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h2{ font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
h3{ font-size: clamp(20px, 2vw, 25px); line-height: 1.24; }

.section-head{ max-width: 720px; margin-bottom: 48px; }
.section-head p{ margin-top: 16px; font-size: 17.5px; color: var(--ink-soft); }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

.lede{ font-size: 20px; color: var(--ink-soft); line-height: 1.55; }

.mono-tag{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn:hover svg{ transform: translateX(3px); }
.btn-primary{ background: var(--purple); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--purple-hi); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--purple); color: var(--purple); }
.btn-on-dark{ background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-on-dark:hover{ background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }
.btn-gold{ background: var(--gold); color: var(--purple-dk2); }
.btn-gold:hover{ background: var(--gold-hi); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site-header .container{ display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand{ display: flex; align-items: center; gap: 11px; }
.brand-mark{ height: 48px; width: auto; flex-shrink: 0; display: block; }
.footer-brand .brand-mark{ height: 52px; }
.brand-word{ font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.brand-word small{ display: block; font-family: var(--font-mono); font-weight: 500; font-size: 9.5px; letter-spacing: 0.22em; color: var(--purple); margin-top: 1px; }

.main-nav{ display: flex; align-items: center; gap: 4px; }
.main-nav a{
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  padding: 10px 15px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.main-nav a:hover{ color: var(--purple); background: var(--purple-lt); }
.main-nav a.active{ color: var(--purple); }
.header-actions{ display: flex; align-items: center; gap: 10px; }

.nav-toggle{ display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span{ display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 900px){
  .main-nav{
    position: fixed; inset: 78px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: stretch; padding: 18px;
    gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    overflow-y: auto;
  }
  .main-nav a{ padding: 15px 16px; font-size: 17px; border-radius: 10px; }
  body.nav-open .main-nav{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle{ display: block; }
  .header-actions .btn-primary{ padding: 10px 18px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: var(--purple-dk);
  color: #fff;
  overflow: hidden;
  padding: 52px 0 0;
}
.hero-bg{
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 82% 8%, rgba(122,63,184,0.55), transparent 60%),
    radial-gradient(ellipse 50% 60% at 8% 92%, rgba(192,138,40,0.20), transparent 60%),
    linear-gradient(160deg, var(--purple-dk2), var(--purple-dk) 60%);
}
.hero-grain{
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
}
.hero-inner{ position: relative; z-index: 1; }
.hero .container{ padding-top: 0; padding-bottom: 28px; }
.hero-copy{ max-width: 780px; }
.hero-copy .eyebrow{ margin-bottom: 14px; }
.hero h1{
  color: #fff; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08;
  letter-spacing: -0.015em;
}
.hero h1 em{ font-style: italic; color: var(--gold-hi); }
.hero-copy p.lede{ color: rgba(255,255,255,0.78); margin-top: 16px; max-width: 620px; }
.hero-actions{ display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

.hero-stats{
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}
.stat-grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px 0;
}
.stat-grid .stat + .stat{ border-left: 1px solid rgba(255,255,255,0.12); }
.stat-grid.stat-grid-6{ grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
.stat-grid.stat-grid-6 .stat:nth-child(3n+1){ border-left: none; }
.stat-grid.stat-grid-6 .stat:nth-child(n+4){ border-top: 1px solid rgba(255,255,255,0.12); padding-top: 13px; }
.stat{ padding: 0 28px; }
.stat .num{ font-family: var(--font-mono); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; color: var(--gold-hi); font-weight: 500; letter-spacing: -0.02em; display: block; }
.stat .label{ font-size: 13.5px; color: rgba(255,255,255,0.72); margin-top: 12px; line-height: 1.4; }
.stat-grid-6 .stat .num{ font-size: clamp(22px, 2.4vw, 30px); }
.stat-grid-6 .stat .label{ font-size: 12.5px; margin-top: 8px; line-height: 1.35; }

@media (max-width: 900px){
  .stat-grid{ grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat-grid .stat:nth-child(2n+1){ border-left: none; }
  .stat-grid .stat:nth-child(n+3){ border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; }
}

/* ---------- Sections ---------- */
.section{ padding: 96px 0; scroll-margin-top: 90px; }
.section.tint{ background: var(--purple-lt); }
.section.dark{ background: var(--purple-dk); color: #fff; }
.section.dark h2, .section.dark h3{ color: #fff; }
.section.dark p{ color: rgba(255,255,255,0.72); }
.section.compact{ padding: 64px 0; }
.section-top-border{ border-top: 1px solid var(--line); }

@media (max-width: 700px){ .section{ padding: 64px 0; } }

/* ---------- Value / Feature 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); }
@media (max-width: 980px){ .grid-4{ grid-template-columns: repeat(2, 1fr); } .grid-3{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--purple-line); }
.card .ref{ font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: .06em; }
.card h3{ margin-top: 12px; }
.card p{ margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.card ul{ margin-top: 14px; display: grid; gap: 8px; }
.card ul li{ font-size: 14.5px; color: var(--ink-soft); padding-left: 18px; position: relative; }
.card ul li::before{ content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--purple-line); }

.icon-tile{
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--purple-lt); color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.icon-tile svg{ width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--purple-dk2); color: rgba(255,255,255,0.7); padding: 72px 0 30px; }
.footer-top{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .brand-word{ color: #fff; }
.footer-brand p{ margin-top: 16px; font-size: 14.5px; max-width: 320px; color: rgba(255,255,255,0.6); }
.footer-col h4{ font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col ul{ display: grid; gap: 11px; }
.footer-col a{ font-size: 14.5px; color: rgba(255,255,255,0.78); transition: color .2s; }
.footer-col a:hover{ color: var(--gold-hi); }
.footer-bottom{ display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 12px; }
.footer-bottom a{ color: rgba(255,255,255,0.45); }
.footer-bottom a:hover{ color: #fff; }
.social-row{ display: flex; gap: 12px; }
.social-row a{ width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.social-row a svg{ width: 15px; height: 15px; }
.social-row a:hover{ border-color: var(--gold-hi); color: var(--gold-hi); }

@media (max-width: 900px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity: 1; transform: none; }

/* ---------- Page hero (non-home) ---------- */
.page-hero{ background: var(--purple-dk); color: #fff; padding: 84px 0 34px; position: relative; overflow: hidden; }
.page-hero .container{ position: relative; z-index: 1; }
.page-hero h1{ color: #fff; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; max-width: 780px; }
.page-hero p.lede{ color: rgba(255,255,255,0.75); max-width: 620px; margin-top: 14px; }
.page-hero .eyebrow{ margin-bottom: 12px; }
.breadcrumb-row{ display:flex; align-items:center; gap:8px; font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,0.5); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em;}
.breadcrumb-row a{ color: rgba(255,255,255,0.7); }
.breadcrumb-row a:hover{ color: var(--gold-hi); }

/* ---------- Utility ---------- */
.flex{ display: flex; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-wrap{ flex-wrap: wrap; }
.gap-8{ gap: 8px; } .gap-12{ gap: 12px; } .gap-16{ gap: 16px; } .gap-24{ gap: 24px; }
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;} .mt-64{margin-top:64px;}
.text-center{ text-align: center; }
.tag{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px; background: var(--purple-lt); color: var(--purple);
  white-space: nowrap;
}
.tag .dot{ width: 6px; height: 6px; border-radius: 50%; }
.divider{ height: 1px; background: var(--line); border: none; margin: 0; }

.pill-row{ display: flex; gap: 10px; flex-wrap: wrap; }
.pill{
  appearance: none; -webkit-appearance: none; margin: 0;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft); cursor: pointer;
  transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.pill .dot{ width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; }
.pill:hover{ border-color: var(--purple); color: var(--purple); }
.pill.active{ background: var(--purple); border-color: var(--purple); color: #fff; }
.pill.active .dot{ opacity: 1; }

/* Skip link */
.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ==========================================================================
   Interactive map
   ========================================================================== */
.map-module{
  display: grid; grid-template-columns: 1fr 320px; gap: 24px;
  align-items: start;
}
.map-module.is-fullscreen{
  position: fixed; inset: 0; z-index: 999;
  background: var(--purple-dk2); padding: 20px;
  grid-template-columns: 1fr 340px; align-items: stretch;
  opacity: 1 !important; transform: none !important;
}
.map-module.is-fullscreen .map-frame{ height: 100%; }
.map-module.is-fullscreen .world-map{ height: 100%; }
.map-module.is-fullscreen .map-panel{ position: static; max-height: 100%; overflow-y: auto; }
body.map-lock{ overflow: hidden; }
.map-expand-btn{
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: flex; align-items: center; gap: 7px;
  background: rgba(23,16,31,0.55); backdrop-filter: blur(6px);
  color: #fff; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  padding: 8px 14px 8px 12px; font-family: var(--font-mono); font-size: 11.5px;
  cursor: pointer; transition: background .2s;
}
.map-expand-btn:hover{ background: rgba(23,16,31,0.8); }
.map-expand-btn svg{ width: 14px; height: 14px; }
@media (max-width: 700px){
  .map-expand-btn span{ display: none; }
}
.map-frame{
  position: relative; background: var(--purple-dk2); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.map-frame .map-glow{
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(122,63,184,0.35), transparent 70%);
  pointer-events: none;
}
.world-map{ width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.world-map .land{ fill: rgba(255,255,255,0.055); stroke: rgba(255,255,255,0.14); stroke-width: 0.6; }
.world-map .node{ cursor: pointer; }
.world-map .node circle.halo{ fill: none; opacity: 0; transition: opacity .2s; }
.world-map .node circle.core{ transition: r .2s var(--ease), fill .2s; }
.world-map .node:hover circle.halo, .world-map .node.active circle.halo{ opacity: 0.35; }
.world-map .node.dim circle.core{ opacity: 0.18; }
.world-map .node.dim circle.halo{ opacity: 0; }
.world-map .node text{
  font-family: var(--font-mono); font-size: 8.5px; fill: rgba(255,255,255,0.82);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.world-map .node.active text, .world-map .node:hover text{ opacity: 1; }

.map-legend{
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  display: flex; gap: 14px; flex-wrap: wrap; max-width: 70%;
}
.map-legend .item{ display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,0.65); }
.map-legend .item .dot{ width: 7px; height: 7px; border-radius: 50%; }

.map-panel{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; min-height: 360px; box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
}
.map-panel .empty{ color: var(--ink-soft); font-size: 14.5px; }
.map-panel .empty .big-hint{ font-family: var(--font-mono); font-size: 12px; color: var(--purple); letter-spacing: .06em; text-transform: uppercase; display:block; margin-bottom: 10px; }
.map-panel h4{ font-family: var(--font-display); font-size: 21px; color: var(--ink); }
.map-panel .institution{ font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.map-panel .proj-list{ margin-top: 18px; display: grid; gap: 12px; }
.map-panel .proj-item{ padding-left: 16px; border-left: 3px solid var(--line); }
.map-panel .proj-item .cat{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.map-panel .proj-item p{ font-size: 14px; margin-top: 4px; color: var(--ink-soft); line-height: 1.45; }
.map-panel .cat-badges{ margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-panel .cat-badge{
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em;
  padding: 7px 13px; border-radius: 999px; border: 1px solid; font-weight: 500;
}

@media (max-width: 980px){
  .map-module{ grid-template-columns: 1fr; }
  .map-panel{ position: static; }
  .map-module.is-fullscreen{
    grid-template-columns: 1fr;
    grid-template-rows: 55vh 1fr;
    overflow-y: auto;
  }
  .map-module.is-fullscreen .map-frame{ height: 100%; min-height: 0; }
  .map-module.is-fullscreen .map-panel{ max-height: none; overflow-y: visible; }
}

.regional-row{ display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 800px){ .regional-row{ grid-template-columns: 1fr; } }
.regional-card{ background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.regional-card h4{ font-family: var(--font-display); font-size: 16.5px; }
.regional-card .institution{ font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.regional-card ul{ margin-top: 12px; display: grid; gap: 8px; }
.regional-card li{ font-size: 13.5px; color: var(--ink-soft); padding-left: 14px; position: relative; }
.regional-card li::before{ content:""; position:absolute; left:0; top:8px; width:5px; height:5px; border-radius:50%; background: var(--purple-line); }

/* ==========================================================================
   Directory / list view (accessible alternative to the map)
   ========================================================================== */
.dir-group{ margin-top: 40px; }
.dir-group h3{ display:flex; align-items:center; gap:12px; }
.dir-group h3 .count{ font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.dir-table{ margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.dir-row{ display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 16px 20px; border-top: 1px solid var(--line); }
.dir-row:first-child{ border-top: none; }
.dir-row .country{ font-weight: 600; font-size: 14.5px; }
.dir-row .institution{ font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.dir-row .items{ display: grid; gap: 6px; }
.dir-row .items li{ font-size: 14px; color: var(--ink-soft); }
.dir-row .items li b{ color: var(--ink); font-weight: 500; }
@media (max-width: 700px){ .dir-row{ grid-template-columns: 1fr; } }

.dir-row-simple{
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.dir-row-simple:first-child{ border-top: none; }
.dir-row-simple .country{ font-weight: 600; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.dir-row-simple .country:hover{ color: var(--purple); }
.dir-row-simple .country::after{ content: ":"; }
.dir-row-simple .dir-cats{ font-size: 13.5px; color: var(--ink-soft); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 800px){ .team-grid{ grid-template-columns: 1fr; } }
.team-card{ background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; gap: 22px; }
.team-photo{ width: 92px; height: 92px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--purple-lt); }
.team-photo img{ width: 100%; height: 100%; object-fit: cover; }
.team-card h3{ font-size: 20px; }
.team-card .role{ font-family: var(--font-mono); font-size: 12px; color: var(--purple); letter-spacing: .04em; margin-top: 4px; text-transform: uppercase; }
.team-card .bio{ margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); }

.team-full{ margin-top: 90px; scroll-margin-top: 96px; }
.team-full:first-of-type{ margin-top: 0; }
.team-detail{ display: grid; grid-template-columns: 220px 1fr; gap: 44px; }
@media (max-width: 800px){ .team-detail{ grid-template-columns: 1fr; } }
.team-detail-photo{ width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--purple-lt); }
.team-detail-photo img{ width: 100%; height: 100%; object-fit: cover; }
.team-detail-photo + .name-block{ margin-top: 18px; }
.name-block h3{ font-size: 22px; }
.name-block .role{ font-family: var(--font-mono); font-size: 12px; color: var(--purple); text-transform: uppercase; letter-spacing: .04em; margin-top: 5px; line-height: 1.6; }
.expertise-cols{ display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; }
@media (max-width: 600px){ .expertise-cols{ grid-template-columns: 1fr; } }
.expertise-cols h5{ font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 10px; }
.expertise-cols ul{ display: grid; gap: 8px; }
.expertise-cols li{ font-size: 14px; padding-left: 16px; position: relative; }
.expertise-cols li::before{ content:""; position:absolute; left:0; top:8px; width:5px; height:5px; border-radius:50%; background: var(--purple); }
.project-list{ margin-top: 10px; display: grid; gap: 10px; }
.project-list li{ font-size: 14.5px; color: var(--ink-soft); padding-left: 18px; position: relative; line-height: 1.5; }
.project-list li::before{ content:"—"; position:absolute; left:0; color: var(--purple-line); }
.project-list li b{ color: var(--ink); font-weight: 500; }

/* ==========================================================================
   Insights / Publications
   ========================================================================== */
.pub-list{ margin-top: 20px; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.pub-row{ background: var(--paper); padding: 24px 26px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; transition: background .2s; }
.pub-row:hover{ background: var(--purple-lt); }
.pub-row h4{ font-size: 17px; font-family: var(--font-display); }
.pub-meta{ font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.pub-meta span + span::before{ content: "·"; margin: 0 8px; color: var(--purple-line); }
.status-chip{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.status-chip.published{ background: rgba(31,122,108,0.12); color: var(--teal); }
.status-chip.progress{ background: rgba(192,138,40,0.14); color: var(--gold); }
@media (max-width: 620px){ .pub-row{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.info-item{ display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.info-item:first-child{ border-top: none; }
.info-item .icon-tile{ margin-bottom: 0; }
.info-item h4{ font-size: 15.5px; }
.info-item p, .info-item a{ font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; }
.info-item a:hover{ color: var(--purple); }

.form-field{ margin-bottom: 20px; }
.form-field label{ display:block; font-size: 13.5px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select{
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 15px; background: var(--paper-dim);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91,42,140,0.14); background: #fff;
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .form-row{ grid-template-columns: 1fr; } }
.form-note{ font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.form-error{ font-size: 12.5px; color: var(--rose); margin-top: 6px; }

/* ==========================================================================
   Misc page bits: About differentiators, logos strip, CTA band
   ========================================================================== */
.cta-band{ background: var(--purple); border-radius: 24px; padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.14), transparent 55%);
}
.cta-band h2{ color: #fff; position: relative; }
.cta-band p{ color: rgba(255,255,255,0.82); margin-top: 14px; position: relative; max-width: 520px; margin-inline: auto; }
.cta-band .hero-actions{ justify-content: center; position: relative; margin-top: 32px; }

.numbered-list{ counter-reset: dgt; display: grid; gap: 26px; }
.numbered-list li{ counter-increment: dgt; display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.numbered-list li::before{
  content: counter(dgt, decimal-leading-zero); font-family: var(--font-mono);
  font-size: 14px; color: var(--gold); padding-top: 2px;
}
.numbered-list h4{ font-size: 16.5px; font-family: var(--font-display); }
.numbered-list p{ font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; }

.quote-block{ border-left: 3px solid var(--gold); padding-left: 26px; margin: 40px 0; }
.quote-block p{ font-family: var(--font-display); font-size: 22px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.quote-block cite{ display:block; margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); font-style: normal; }

.geo-strip{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.geo-strip span{
  font-family: var(--font-mono); font-size: 12.5px; padding: 8px 15px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
}
.section.dark .geo-strip span{
  border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
}
