/* ═══════════════════════════════════════════════
   SAFE-T Project Microsite — StructuralMG palette
════════════════════════════════════════════════ */

:root {
  --green-darkest: #04342C;
  --green-dark:    #085041;
  --green-mid:     #0F6E56;
  --green-base:    #1D9E75;
  --green-light:   #5DCAA5;
  --green-pale:    #9FE1CB;
  --green-ghost:   #E1F5EE;

  --text-primary:   #1a1a18;
  --text-secondary: #5a5a55;
  --text-muted:     #8a8a82;

  --bg-white:  #ffffff;
  --bg-off:    #f7f6f2;
  --bg-subtle: #f0efe9;

  --border-light: rgba(0,0,0,0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Public Sans', system-ui, sans-serif;

  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.section { padding: 72px 0; }
.section--off { background: var(--bg-off); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-base);
  display: block;
  margin-bottom: 10px;
}

.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.section-intro { color: var(--text-secondary); max-width: none; margin-bottom: 40px; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn--primary { background: var(--green-base); color: #fff; }
.btn--primary:hover { background: var(--green-mid); transform: translateY(-1px); }

.btn--ghost { color: var(--green-pale); border-color: rgba(93,202,165,0.5); }
.btn--ghost:hover { background: rgba(93,202,165,0.1); color: #fff; }

.btn--dark-outline { color: var(--green-mid); border-color: var(--green-mid); }
.btn--dark-outline:hover { background: var(--green-ghost); }

/* ── Top banner (parent site link) ────────────── */
.parent-banner {
  background: var(--green-darkest);
  color: var(--green-pale);
  font-size: 12px;
  padding: 7px 0;
  text-align: center;
}
.parent-banner a { color: var(--green-light); text-decoration: underline; }

/* ── Navigation ───────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-darkest);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav-brand .brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.nav-links a:hover { color: var(--text-primary); background: var(--bg-subtle); }
.nav-links a.active { color: var(--green-mid); background: var(--green-ghost); font-weight: 500; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  background: var(--green-darkest);
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 85% 30%, rgba(29,158,117,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 8% 90%, rgba(93,202,165,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero-grant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--green-light);
  background: rgba(29,158,117,0.14);
  border: 1px solid rgba(93,202,165,0.25);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero .hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--green-light);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 20px;
}

.hero .hero-question {
  font-size: 16px;
  color: var(--green-pale);
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(93,202,165,0.2);
}

.hero-meta-item { min-width: 140px; }
.hero-meta-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-light); margin-bottom: 4px; }
.hero-meta-value { font-size: 14px; color: #fff; }

/* ── Abstract block ───────────────────────────── */
.abstract-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.abstract-text { font-size: 16.5px; line-height: 1.8; color: var(--text-primary); }

.fact-card {
  background: var(--green-darkest);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 88px;
}

.fact-card h3 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.fact-row { padding: 10px 0; border-bottom: 1px solid rgba(93,202,165,0.15); }
.fact-row:last-child { border-bottom: none; }
.fact-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-light); }
.fact-value { font-size: 13px; color: rgba(255,255,255,0.9); margin-top: 2px; }
.fact-value a { color: var(--green-pale); text-decoration: underline; }

@media (max-width: 860px) {
  .abstract-grid { grid-template-columns: 1fr; }
  .fact-card { position: static; }
}

/* ── Objectives ───────────────────────────────── */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.objective-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-base);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.2s;
}

.objective-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.objective-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--green-base);
  font-weight: 700;
  margin-bottom: 10px;
}

.objective-card h3 { font-size: 16px; margin-bottom: 8px; }
.objective-card p { font-size: 14px; color: var(--text-secondary); }

/* ── Methods strip ────────────────────────────── */
.methods-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.method-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-ghost);
  color: var(--green-mid);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 24px;
}

/* ── Timeline ─────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; max-width: 720px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-light);
}

.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--green-light);
}

.timeline-item.done .timeline-dot { background: var(--green-base); border-color: var(--green-base); }

.timeline-date { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--green-mid); margin-bottom: 4px; }
.timeline-item h3 { font-size: 16px; margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--text-secondary); }

.timeline-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}
.timeline-badge.done { background: var(--green-ghost); color: var(--green-mid); }
.timeline-badge.upcoming { background: var(--bg-subtle); color: var(--text-muted); }

/* ── Team ─────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.2s;
}

.team-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); }

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-mid);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
}

.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-card h3 { font-size: 16px; margin-bottom: 4px; }
.team-role { font-size: 12.5px; color: var(--green-mid); font-weight: 500; margin-bottom: 10px; }
.team-bio { font-size: 13px; color: var(--text-secondary); }
.team-email { display: inline-block; font-size: 12px; color: var(--green-mid); margin-top: 12px; text-decoration: underline; }

/* ── Results ──────────────────────────────────── */
.results-list { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }

.result-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.result-marker {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-ghost);
  color: var(--green-mid);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.result-item p { font-size: 14.5px; color: var(--text-primary); }

/* Key numbers band */
.numbers-band {
  background: var(--green-darkest);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.number-item { text-align: center; }
.number-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--green-light); line-height: 1; }
.number-label { font-size: 12px; color: var(--green-pale); margin-top: 8px; }

/* Impact cards */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.impact-card {
  background: var(--bg-off);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.impact-card h3 { font-size: 15px; color: var(--green-mid); margin-bottom: 10px; }
.impact-card p { font-size: 13.5px; color: var(--text-secondary); }

/* ── Publications ─────────────────────────────── */
.pub-list { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }

.pub-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: all 0.2s;
}

.pub-item:hover { border-color: var(--green-light); box-shadow: var(--shadow); }

.pub-year {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  background: var(--green-ghost);
  color: var(--green-mid);
  padding: 3px 12px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.pub-item h3 { font-size: 16px; line-height: 1.45; margin-bottom: 6px; }
.pub-authors { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.pub-venue { font-size: 13px; color: var(--text-muted); font-style: italic; margin-bottom: 12px; }
.pub-links { display: flex; gap: 10px; flex-wrap: wrap; }

.pub-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green-mid);
  border: 1px solid var(--green-light);
  padding: 5px 14px;
  border-radius: 16px;
  transition: background 0.15s;
}
.pub-link:hover { background: var(--green-ghost); }

/* ── Funding strip ────────────────────────────── */
.funding-strip {
  background: var(--bg-subtle);
  padding: 32px 0;
  text-align: center;
}
.funding-strip p { font-size: 13px; color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.funding-strip strong { color: var(--text-primary); }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  background: var(--green-darkest);
  padding: 48px 0 28px;
  color: var(--green-pale);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-tagline { font-size: 13px; color: rgba(159,225,203,0.7); max-width: 300px; }

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 13px; color: rgba(159,225,203,0.75); transition: color 0.15s; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(93,202,165,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(159,225,203,0.5);
}

.footer-bottom a { color: var(--green-light); text-decoration: underline; }

/* ── Reveal animation ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Page hero (subpages) ─────────────────────── */
.page-hero { background: var(--green-darkest); padding: 64px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--green-pale); }

/* ── Progress bar ("we are here") ─────────────── */
.progress-wrap { max-width: 720px; margin-bottom: 8px; }

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.progress-labels small { font-weight: 400; color: var(--text-muted); }

.progress-track {
  position: relative;
  height: 12px;
  background: var(--bg-subtle);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--green-mid), var(--green-base));
  border-radius: 8px;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.4, 1);
}

.progress-marker {
  position: absolute;
  top: -34px;
  left: 0%;
  transform: translateX(-50%);
  text-align: center;
  transition: left 1.2s cubic-bezier(0.25, 1, 0.4, 1);
}

.progress-marker-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--green-darkest);
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  margin-bottom: 4px;
}

.progress-marker-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-darkest);
  border: 4px solid var(--green-light);
  margin: 6px auto 0;
  box-shadow: 0 2px 8px rgba(4,52,44,0.35);
}

.progress-pct {
  font-size: 12px;
  color: var(--green-mid);
  font-weight: 600;
  margin-top: 12px;
}

/* ── Team card links row ──────────────────────── */
.team-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.team-link-chip {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--green-mid);
  background: var(--green-ghost);
  padding: 4px 12px;
  border-radius: 14px;
  transition: background 0.15s;
}
.team-link-chip:hover { background: var(--green-pale); }

/* ── Outreach & open data ─────────────────────── */
.outreach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.outreach-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.2s;
}
.outreach-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); }

.outreach-type {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-mid);
  background: var(--green-ghost);
  padding: 3px 11px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.outreach-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.outreach-card p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; }
.outreach-card .pub-link { font-size: 12px; }

.data-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.data-item-info h3 { font-size: 14.5px; margin-bottom: 3px; }
.data-item-info p { font-size: 12.5px; color: var(--text-muted); margin: 0; }

.team-position { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
