/* =========================================================
   ESCAPE FROM ESKAPE — SANU Project No. 01-2026
   Static site styles
   ========================================================= */

:root {
  /* Brand palette (from project mockups) */
  --navy: #0a2653;
  --navy-2: #0d2f66;
  --navy-3: #071b3d;
  --blue: #0077a8;
  --teal: #00776b;
  --green: #3bb54a;
  --green-2: #2e9c3c;
  --green-3: #1f7a2e;

  /* Neutrals */
  --ink: #17233b;
  --body: #33415c;
  --muted: #5d6b84;
  --line: #e2e8f2;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --bg-tint: #eef6f0;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(10, 38, 83, .06);
  --shadow: 0 10px 30px rgba(10, 38, 83, .10);
  --shadow-lg: 0 18px 44px rgba(10, 38, 83, .16);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --container: 1200px;
  --header-h: 86px;

  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --grad-brand: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--green));
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
}
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 1200;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow); }
.btn-green { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--green-2); box-shadow: var(--shadow); }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.brand:hover { text-decoration: none; transform: translateY(-1px); }
.brand-logo-full {
  height: 66px; width: auto; display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .55)) drop-shadow(0 0 6px rgba(150, 214, 255, .22));
  transition: filter .25s ease;
}
.brand:hover .brand-logo-full {
  filter: drop-shadow(0 5px 13px rgba(0, 0, 0, .6)) drop-shadow(0 0 10px rgba(150, 214, 255, .38)) brightness(1.06);
}
.brand-word {
  display: grid;
  line-height: 1;
  font-family: var(--font-head);
  letter-spacing: .14em;
}
.brand-word b { font-size: 16px; font-weight: 800; color: #fff; }
.brand-word i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .32em;
  margin: 1px 0;
}

/* Nav */
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav > ul { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
}
.primary-nav a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.07); }
.primary-nav a[aria-current="page"] { color: #fff; }
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 3px; border-radius: 3px;
  background: var(--green);
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-head);
}
.lang-switch a {
  padding: 6px 13px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
}
.lang-switch a:hover { background: rgba(255,255,255,.1); text-decoration: none; color:#fff; }
.lang-switch a.active { background: var(--green); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  height: 2.5px; width: 24px;
  background: #fff; border-radius: 3px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-3);
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.05) contrast(1.03);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(118deg, rgba(8, 30, 66, .80) 0%, rgba(11, 45, 92, .50) 46%, rgba(0, 119, 107, .30) 100%),
    radial-gradient(120% 120% at 50% 42%, rgba(7, 27, 61, .10) 0%, rgba(7, 27, 61, .34) 62%, rgba(7, 27, 61, .58) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px 0;
  text-align: center;
}
.hero-lead {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  color: rgba(255, 255, 255, .94);
  max-width: 900px;
  margin: 0 auto .25em;
  line-height: 1.3;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: #fff;
  font-weight: 800;
  margin: 0 0 .35em;
  text-shadow: 0 3px 20px rgba(0,0,0,.4);
}
.hero-tagline {
  font-family: var(--font-head);
  font-weight: 800;
  color: #63ec77;
  letter-spacing: .24em;
  font-size: clamp(.9rem, 2.1vw, 1.35rem);
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  margin-bottom: 16px;
  padding: 11px 30px 13px;
  border-radius: 999px;
  background: rgba(5, 19, 44, .62);
  border: 1.5px solid rgba(99, 236, 119, .38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}
.hero-tagline::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: -13px;
  width: 58%; height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
}
.hero-actions { margin-top: 34px; }
.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .35);
  padding: 10px 22px 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.btn-watch:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); text-decoration: none; border-color:#fff; }
.btn-watch .play {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.btn-watch .play svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }

/* ---------- Decorative graphics (molecules / bacteria) ---------- */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .container { position: relative; z-index: 1; }
.deco { position: absolute; z-index: 0; pointer-events: none; color: var(--green); }
.deco-mol { opacity: .10; }
.deco-bac { opacity: .085; }
.deco.tr { top: -26px; right: -34px; width: 230px; }
.deco.bl { bottom: -30px; left: -42px; width: 210px; }
.deco.br { bottom: -26px; right: -38px; width: 220px; }
.deco.tl { top: -22px; left: -38px; width: 200px; }
.deco.mid-r { top: 50%; right: -46px; width: 180px; transform: translateY(-50%); }
@media (max-width: 900px) { .deco { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--bg-soft); }
.section-green { background: var(--bg-tint); }
.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  color: var(--teal);
  margin: 0 0 10px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
/* Latin brand term inside Cyrillic text (e.g. SmartLoop) */
.sl-term { font-style: italic; }
.title-underline { position: relative; padding-bottom: 16px; }
.title-underline::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 78px; height: 4px; border-radius: 4px;
  background: var(--grad-brand);
}
.section-head:not(.left) .title-underline::after { left: 50%; transform: translateX(-50%); }
.lead-text { font-size: 1.12rem; color: var(--muted); }

/* ---------- Goals (home) ---------- */
.goals-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 48px;
  align-items: start;
}
.goals-intro p { font-size: 1.12rem; color: var(--body); }
.obj-card {
  background:
    radial-gradient(135% 100% at 12% 0%, #f7fbff 0%, rgba(247, 251, 255, 0) 52%),
    radial-gradient(120% 120% at 100% 100%, #dce9fa 0%, rgba(220, 233, 250, 0) 55%),
    linear-gradient(152deg, #eff6fe 0%, #e6f0fc 48%, #dfeafb 100%);
  border: 1px solid #dbe8f8;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(10, 38, 83, .07), inset 0 1px 0 rgba(255, 255, 255, .8);
  padding: 32px 34px;
}
.obj-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 20px;
}
.obj-list { display: grid; gap: 20px; counter-reset: obj; }
.obj-item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.obj-num {
  counter-increment: obj;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  display: grid; place-items: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(59, 181, 74, .35);
}
.obj-num::before { content: counter(obj); }
.obj-item p { margin: 0; font-size: .99rem; line-height: 1.55; color: var(--body); }

/* ---------- Feature tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(59,181,74,.4); }
.tile-icon {
  width: 66px; height: 66px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(0, 119, 168, .12), rgba(59, 181, 74, .14));
  color: var(--teal);
}
.tile-icon svg { width: 34px; height: 34px; }
.tile-num {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  background: var(--navy);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.tile h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--navy); }
.tile p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Partners / collaboration cards (colour + reveal + 3D tilt) ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 6px;
  perspective: 1000px;
}
.pcard {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.pcard.in { opacity: 1; transform: none; }
.pcard-link {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
  height: 100%;
  padding: 30px 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--body);
  transform: perspective(760px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}
.pcard-link:hover { text-decoration: none; box-shadow: var(--shadow-lg); border-color: rgba(59, 181, 74, .45); }
.pcard-shine {
  position: absolute; inset: 0;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 181, 74, .16), rgba(0, 119, 168, .10) 35%, transparent 60%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.pcard-link:hover .pcard-shine { opacity: 1; }
.pcard-logo {
  height: 96px; width: 100%;
  display: grid; place-items: center;
  transform: translateZ(28px);
}
.pcard-logo img { max-height: 96px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.pcard-name {
  font-family: var(--font-head);
  font-weight: 700; font-size: .9rem;
  line-height: 1.35; text-align: center;
  color: var(--ink);
  transform: translateZ(16px);
  transition: color .25s ease;
}
.pcard-link:hover .pcard-name { color: var(--blue); }
@media (max-width: 900px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .partner-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) {
  .pcard { opacity: 1; transform: none; transition: none; }
  .pcard-link { transform: none !important; }
}

/* ---------- Workflow scheme ---------- */
.scheme-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
}
.scheme-card img { margin: 0 auto; border-radius: 10px; width: 100%; max-width: 620px; height: auto; }

/* ---------- Page banner + breadcrumbs ---------- */
.page-banner {
  position: relative;
  background:
    linear-gradient(115deg, rgba(7, 27, 61, .95), rgba(0, 119, 107, .78)),
    var(--navy);
  color: #fff;
  padding: 56px 0 46px;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,181,74,.28), transparent 68%);
  pointer-events: none;
}
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin: 0 0 6px; }
.breadcrumbs { position: relative; z-index: 1; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14.5px; }
.breadcrumbs a { color: rgba(255,255,255,.82); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li[aria-current] { color: var(--green); font-weight: 700; }
.breadcrumbs .sep { color: rgba(255,255,255,.45); }

/* ---------- Project page ---------- */
.prose { max-width: 880px; }
.prose p { font-size: 1.08rem; color: var(--body); }
.prose p:first-of-type::first-letter { }

.fund-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 12px 0 0;
}
.fund-card .inst-logo { width: 60px; height: 60px; flex: 0 0 auto; }
.fund-card p { margin: 0; font-size: 1rem; color: var(--body); }
.fund-card strong { color: var(--navy); }

/* ---------- Team ---------- */
.team-photo { margin: 0 auto 48px; max-width: 720px; }
.team-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
  border: 1px solid var(--line);
}
.team-photo figcaption {
  text-align: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: .96rem;
  font-family: var(--font-head);
  font-weight: 600;
}
.team-group { margin-top: 54px; }
.team-group:first-child { margin-top: 0; }
.team-group-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.team-group-head h2 { font-size: 1.3rem; margin: 0; color: var(--navy); }
.team-group-head .rule { flex: 1; height: 1px; background: var(--line); }
.team-group-head .chip {
  font-family: var(--font-head);
  font-weight: 700; font-size: 12.5px;
  color: var(--teal);
  background: rgba(0,119,107,.1);
  padding: 5px 12px; border-radius: 999px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* Round photo module with thin border + gap */
.avatar {
  display: block;
  width: 108px; height: 108px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  padding: 4px;
  background: #fff;
  position: relative;
}
.avatar img,
.avatar .silhouette {
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  width: calc(100% - 8px); height: calc(100% - 8px);
  border-radius: 50%;
}
.avatar img { object-fit: cover; z-index: 1; background: #fff; }
.avatar .silhouette {
  z-index: 0;
  background: linear-gradient(160deg, #e9f1f6, #dfeef0);
  display: grid; place-items: center;
  color: #9fb1c6;
}
.avatar .silhouette svg { width: 54px; height: 54px; }
.member h3 { font-size: 1.06rem; margin: 0 0 4px; color: var(--ink); }
.member .role { font-size: .9rem; color: var(--muted); margin: 0 0 12px; min-height: 2.4em; }
.member .m-inst {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700; font-size: 11.5px;
  color: var(--blue);
  background: rgba(0,119,168,.08);
  padding: 4px 11px; border-radius: 999px;
  margin-bottom: 14px;
}
.orcid {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px 5px 6px;
  border: 1.5px solid #A6CE39;
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-head);
  font-weight: 700; font-size: 12.5px; letter-spacing: .05em;
  color: #3f5713;
  transition: box-shadow .25s ease, transform .25s ease, color .3s ease;
}
/* fluid green "charge up" fill that loads left -> right on hover */
.orcid::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #A6CE39 0%, #b8dc55 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  z-index: -1;
}
.orcid svg, .orcid span { position: relative; z-index: 1; }
.orcid svg { width: 20px; height: 20px; flex: 0 0 auto; }
.orcid:hover, .orcid:focus-visible {
  text-decoration: none;
  color: #233806;
  box-shadow: 0 5px 16px rgba(166, 206, 57, .45);
  transform: translateY(-1px);
}
.orcid:hover::before, .orcid:focus-visible::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .orcid::before { transition: none; }
}

/* member e-mail + links row */
.m-email {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 0 0 12px;
  font-size: 13px; font-weight: 600; color: var(--body);
  word-break: break-word;
}
.m-email svg { width: 16px; height: 16px; color: var(--teal); flex: 0 0 auto; }
.m-email:hover { color: var(--blue); text-decoration: none; }
.m-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.m-sanu {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px 5px 10px;
  border: 1.5px solid var(--navy); border-radius: 999px; background: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  color: var(--navy);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.m-sanu svg { width: 15px; height: 15px; flex: 0 0 auto; }
.m-sanu:hover { text-decoration: none; background: var(--navy); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(10, 38, 83, .3); }
.member-lead .m-email, .member-lead .m-links { justify-content: flex-start; }

/* Lead (PI) card */
.member-lead {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
  background: linear-gradient(120deg, #fff, var(--bg-soft));
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  padding: 32px 36px;
  margin-bottom: 8px;
}
.member-lead .avatar { width: 132px; height: 132px; margin: 0; flex: 0 0 auto; border-color: var(--green); }
.member-lead .avatar .silhouette svg { width: 66px; height: 66px; }
.member-lead h3 { font-size: 1.5rem; }
.member-lead .role { min-height: 0; font-size: 1rem; margin-bottom: 10px; }
.member-lead .m-inst { font-size: 12.5px; }

/* ---------- Institutions ---------- */
.inst-section { margin-top: 64px; }
.inst-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.inst-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.inst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
a.inst-card { color: inherit; text-decoration: none; }
a.inst-card:hover { text-decoration: none; }
a.inst-card:hover .inst-name { color: var(--blue); }
.inst-go { margin-left: auto; flex: 0 0 auto; color: #b7c4d6; transition: color .2s ease, transform .2s ease; }
.inst-go svg { width: 18px; height: 18px; display: block; }
a.inst-card:hover .inst-go { color: var(--blue); transform: translate(2px, -2px); }
/* footer institution links */
.footer-inst a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.footer-inst a:hover { text-decoration: none; }
.footer-inst a:hover b { color: var(--green); }
/* footer funder link */
.footer-fund a { color: inherit; text-decoration: none; display: inline-flex; }
.footer-fund a:hover { text-decoration: none; }
.footer-fund a:hover strong { color: var(--green); }
/* project page funder card links */
.fund-card a { color: inherit; text-decoration: none; display: inline-flex; }
.fund-card p a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(10, 38, 83, .35); text-underline-offset: 2px; }
.fund-card p a:hover { color: var(--blue); }
.inst-logo {
  width: 62px; height: 62px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  padding: 5px;
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
}
.inst-logo img { grid-area: 1 / 1; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.inst-logo .ph { grid-area: 1 / 1; z-index: 0; color: #b7c4d6; }
.inst-logo .ph svg { width: 30px; height: 30px; }
.inst-card .inst-logo { width: 74px; height: 74px; padding: 6px; }
.inst-card .inst-name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink); line-height: 1.35; }
.inst-card .inst-abbr { display: block; font-size: .82rem; color: var(--teal); font-weight: 700; margin-top: 3px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.cinfo-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.cinfo-card { text-decoration: none; color: inherit; }
.cinfo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
a.cinfo-card:hover { border-color: rgba(59, 181, 74, .4); }
.cinfo-ic {
  width: 50px; height: 50px; flex: 0 0 auto; border-radius: 14px;
  background: linear-gradient(140deg, rgba(0, 119, 168, .12), rgba(59, 181, 74, .16));
  color: var(--teal); display: grid; place-items: center;
}
.cinfo-ic svg { width: 24px; height: 24px; }
.cinfo-card > .inst-logo { flex: 0 0 auto; }
.cinfo-body { min-width: 0; }
.cinfo-body h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin: 4px 0 8px; font-family: var(--font-head); }
.cinfo-body address { font-style: normal; color: var(--body); line-height: 1.55; margin: 0; }
.cinfo-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: .9rem; color: var(--blue); font-family: var(--font-head); }
.cinfo-link svg { width: 15px; height: 15px; }
.cinfo-link:hover { color: var(--green-3); text-decoration: none; }
.cperson { margin: 0 0 12px; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.cperson span { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email-row > a { color: var(--blue); font-weight: 600; word-break: break-word; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--line); background: var(--bg-soft);
  border-radius: 999px; padding: 6px 13px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--body);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.copy-btn:hover { border-color: var(--green); color: var(--green-3); background: rgba(59, 181, 74, .08); }
.copy-btn .copy-ic { display: inline-flex; }
.copy-btn .copy-ic svg { width: 15px; height: 15px; }
.copy-btn .ic-check { display: none; }
.copy-btn.copied { border-color: var(--green); color: var(--green-3); background: rgba(59, 181, 74, .12); }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-check { display: inline-flex; }
.cinfo-fund { align-items: center; }
.cinfo-fund .inst-logo { width: 56px; height: 56px; }
.cinfo-fund .cinfo-body p { margin: 0; color: var(--body); font-size: .95rem; font-family: var(--font-head); font-weight: 700; }
.cinfo-fund .cfund-no { display: block; font-size: .82rem; color: var(--teal); font-weight: 700; margin-top: 3px; }
.cinfo-go { margin-left: auto; color: #b7c4d6; align-self: center; flex: 0 0 auto; transition: color .2s ease, transform .2s ease; }
.cinfo-go svg { width: 18px; height: 18px; display: block; }
a.cinfo-fund:hover .cinfo-go { color: var(--blue); transform: translate(2px, -2px); }

.contact-map {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  min-height: 400px; background: var(--bg-soft);
}
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-open {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  padding: 9px 15px; border-radius: 999px; box-shadow: var(--shadow);
}
.map-open svg { width: 17px; height: 17px; color: var(--green); }
.map-open:hover { text-decoration: none; color: var(--blue); }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map { min-height: 320px; }
}
@media (max-width: 480px) {
  .cinfo-card { padding: 20px; gap: 14px; }
  .contact-map { min-height: 260px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); }
.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 42px;
  padding: 60px 0 44px;
}
.footer-col h4 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 1.02rem;
  margin: 0 0 18px;
  padding-bottom: 10px;
  position: relative;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 42px; height: 3px; border-radius: 3px; background: var(--green);
}
.footer-fund { display: flex; gap: 16px; align-items: center; }
.footer-fund .inst-logo { width: 64px; height: 64px; background: rgba(255,255,255,.95); border-color: rgba(255,255,255,.25); }
.footer-fund strong { color: #fff; display: block; font-size: .98rem; font-family: var(--font-head); }
.footer-fund span { font-size: .9rem; color: rgba(255,255,255,.72); }

.footer-inst { display: grid; gap: 14px; }
.footer-inst li { display: flex; align-items: center; gap: 12px; font-size: .9rem; line-height: 1.35; }
.footer-inst .inst-logo { width: 40px; height: 40px; padding: 3px; background: rgba(255,255,255,.95); border-color: rgba(255,255,255,.22); }
.footer-inst .inst-logo .ph { color: #8ea2bd; }
.footer-inst .inst-logo .ph svg { width: 20px; height: 20px; }
.footer-inst b { color: #fff; font-weight: 700; }

.footer-contact p, .footer-contact address { font-size: .92rem; color: rgba(255,255,255,.8); font-style: normal; margin: 0 0 10px; line-height: 1.5; }
.footer-contact a { color: var(--green); font-weight: 600; word-break: break-word; }
.footer-contact .ln { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ln svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
}
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: rgba(255,255,255,.78); font-size: .9rem; font-weight: 600; font-family: var(--font-head); }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: .86rem; color: rgba(255,255,255,.6); }

/* ---------- Video modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 14, 32, .82);
  padding: 24px;
  backdrop-filter: blur(3px);
}
.modal.open { display: flex; }
.modal-inner {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.modal-inner video { width: 100%; height: 100%; display: block; }
.modal-close {
  position: absolute;
  top: -16px; right: -16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff; border: 0; cursor: pointer;
  font-size: 22px; line-height: 1;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.modal-close:hover { background: var(--green-2); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-contact { grid-column: 1 / -1; }
  .inst-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .brand-logo-full { height: 52px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 26px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .primary-nav a { padding: 13px 12px; font-size: 17px; border-radius: 8px; }
  .primary-nav a[aria-current="page"]::after { left: 12px; right: auto; width: 26px; bottom: 6px; }
  .lang-switch { margin-top: 16px; align-self: flex-start; }
  .goals-grid { grid-template-columns: 1fr; gap: 34px; }
  .member-lead { gap: 22px; padding: 26px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-contact { grid-column: auto; }
  .hero-inner { padding: 48px 0; }
  .member-lead { flex-direction: column; text-align: center; }
  .member-lead .avatar { margin: 0 auto; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .tiles { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .inst-grid { grid-template-columns: 1fr; }
  .obj-card { padding: 24px 20px; }
  .hero { min-height: 78vh; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand-logo-full { height: 46px; }
  .hero-tagline { letter-spacing: .18em; }
  .modal-close { top: 6px; right: 6px; }
}

/* ---------- Reduced motion & data saver ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, .tile:hover, .member:hover, .inst-card:hover { transform: none; }
}
