/* ==========================================================================
   A-AGRI Research Group — site styles
   ========================================================================== */

:root {
  --forest-900: #0f2a20;
  --forest-800: #153a2c;
  --forest-700: #1d4d3b;
  --forest-600: #276550;
  --forest-500: #2f7a61;
  --forest-100: #e3eee8;
  --ochre-600: #b0731a;
  --ochre-500: #cf8f2e;
  --ochre-300: #ebc078;
  --ochre-100: #f8ecd6;
  --sand-50: #fbf8f2;
  --sand-100: #f5efe3;
  --sand-200: #ebe3d2;
  --ink: #17221d;
  --ink-2: #3a4943;
  --muted: #64746c;
  --line: #e2dacb;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 32, .06), 0 2px 8px rgba(15, 42, 32, .05);
  --shadow: 0 2px 4px rgba(15, 42, 32, .05), 0 12px 32px rgba(15, 42, 32, .09);
  --shadow-lg: 0 24px 60px rgba(15, 42, 32, .18);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-800); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--forest-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ochre-500); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--forest-800); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--sand { background: var(--sand-100); }
.section--forest { background: var(--forest-800); color: #dfe9e4; }
.section--forest h2, .section--forest h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ochre-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--forest .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--ochre-300); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head > div { max-width: 680px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--forest-700); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); color: var(--fg); box-shadow: var(--shadow); }
.btn svg { width: 18px; height: 18px; }
.btn--gold { --bg: var(--ochre-500); --fg: var(--forest-900); }
.btn--gold:hover { --bg: var(--ochre-300); }
.btn--ghost { background: transparent; color: var(--forest-700); border-color: var(--forest-700); }
.btn--ghost:hover { background: var(--forest-700); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: #fff; color: var(--forest-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--forest-600); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and clip it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 248, 242, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
body.nav-open .site-header::before { background: var(--sand-50); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15,42,32,.06); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest-900); min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 9px 12px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .93rem; color: var(--ink-2); transition: color .2s, background .2s;
}
.nav a:hover { color: var(--forest-800); background: var(--forest-100); }
.nav a[aria-current="page"] { color: var(--forest-800); background: var(--forest-100); }
.nav .btn { margin-left: 8px; padding: 10px 18px; color: #fff; }
.nav .btn:hover { background: var(--forest-800); color: #fff; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--forest-100);
  color: var(--forest-800); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 20px var(--gutter) 40px; background: var(--sand-50); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 1.15rem; padding: 14px 16px; border-radius: 12px; }
  .nav .btn { margin: 12px 0 0; padding: 16px; justify-content: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand-sub { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(48px, 8vw, 96px);
  margin-top: calc(var(--header-h) * -1);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,42,32,.55) 0%, rgba(15,42,32,.15) 35%, rgba(15,42,32,.75) 75%, rgba(15,42,32,.95) 100%),
    linear-gradient(90deg, rgba(15,42,32,.6), rgba(15,42,32,0) 70%);
}
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--ochre-300); font-weight: 500; }
.hero .lead { color: rgba(255,255,255,.88); margin-bottom: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px);
  font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.92);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--ochre-300); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: var(--forest-800); padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: var(--hero-img, none); background-size: cover; background-position: center;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(15,42,32,.97) 20%, rgba(15,42,32,.75) 60%, rgba(15,42,32,.55));
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 60ch; font-size: 1.1rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Helix decoration ---------- */
.helix { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: min(44vw, 520px); opacity: .14; z-index: -1; pointer-events: none; color: var(--ochre-300); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--white); padding: clamp(20px, 3vw, 32px); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: var(--forest-700); line-height: 1; }
.stat-num sup { font-size: .5em; color: var(--ochre-500); top: -.8em; }
.stat-label { margin-top: 10px; color: var(--muted); font-size: .92rem; font-weight: 600; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split / intro ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split--top { align-items: start; }
.split--top .photo-stack { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } .split--top .photo-stack { position: relative; top: 0; } }
.photo-stack { position: relative; }
.photo-stack .main { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-stack .float {
  position: absolute; left: -28px; bottom: -32px; width: 44%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--sand-50); box-shadow: var(--shadow);
}
.photo-stack .tag {
  position: absolute; right: 18px; top: 18px; background: var(--ochre-500); color: var(--forest-900);
  font-weight: 800; font-size: .8rem; padding: 8px 14px; border-radius: 999px; letter-spacing: .04em;
}
@media (max-width: 600px) { .photo-stack .float { left: 12px; bottom: -24px; width: 38%; } }

.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--forest-500); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.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: 1000px) { .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(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.area-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.area-card .media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.area-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.area-card:hover .media img { transform: scale(1.06); }
.area-card .num {
  position: absolute; left: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(251,248,242,.95); color: var(--forest-800);
  font-family: var(--font-display); font-weight: 700;
}
.area-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.area-card h3 { margin: 0; font-size: 1.2rem; }
.area-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Highlights timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--ochre-500), var(--line)); }
.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sand-50); border: 3px solid var(--ochre-500);
}
.timeline time { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-600); margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--ink-2); }
.section--forest .timeline p { color: #dfe9e4; }
.section--forest .timeline li::before { background: var(--forest-800); }

/* ---------- Video cards ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.video {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000;
  cursor: pointer; border: 0; padding: 0; width: 100%; display: block; color: #fff; text-align: left;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .3s, transform .5s var(--ease); }
.video:hover img { opacity: .6; transform: scale(1.04); }
.video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  background: var(--ochre-500); color: var(--forest-900); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .3s var(--ease);
}
.video:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 12px; font-size: .95rem; color: #dfe9e4; font-weight: 600; line-height: 1.45; }

/* ---------- Gallery / marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; flex: none; }
.marquee-track img { --mh: clamp(200px, 26vw, 300px); height: var(--mh); width: calc(var(--mh) * .75); object-fit: cover; transition: transform .5s var(--ease); }
.marquee-track button:hover img { transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }

.gallery { columns: 4 240px; column-gap: 14px; }
.gallery button {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--sand-200);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; break-inside: avoid; position: relative;
}
.gallery img { width: 100%; height: auto; transition: transform .5s var(--ease), filter .3s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; text-align: left;
  background: linear-gradient(transparent, rgba(15,42,32,.85)); color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.35;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: rgba(10, 22, 17, .94); padding: 60px 16px;
}
.lightbox.is-open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; max-width: 100%; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.85); text-align: center; font-size: .95rem; max-width: 70ch; }
.lightbox .lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1);
  color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 24px; left: 24px; color: rgba(255,255,255,.6); font-size: .85rem; font-weight: 600; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- Tabs / filters ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font: 700 .9rem/1 var(--font-body); color: var(--ink-2); cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { border-color: var(--forest-500); color: var(--forest-700); }
.tab[aria-selected="true"] { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }
.tab .count { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--sand-100); color: var(--muted); }
.tab[aria-selected="true"] .count { background: rgba(255,255,255,.18); color: #fff; }
.tab-panel[hidden] { display: none; }

.search {
  position: relative; flex: 1 1 280px; max-width: 420px;
}
.search input {
  width: 100%; padding: 13px 16px 13px 46px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font: 500 1rem var(--font-body); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 4px var(--forest-100); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.toolbar .tabs { margin: 0; }

/* ---------- People ---------- */
.pi-feature {
  display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px);
}
.pi-feature img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.pi-feature .role { color: var(--ochre-600); font-weight: 700; margin-bottom: 14px; }
.pi-feature--compact { grid-template-columns: 240px 1fr; }
@media (max-width: 800px) { .pi-feature, .pi-feature--compact { grid-template-columns: 1fr; } .pi-feature img { max-width: 360px; } }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.people--sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.person .photo { aspect-ratio: 4/5; background: var(--sand-200); overflow: hidden; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person .info { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.person h3 { font-size: 1.05rem; margin: 0; }
.person .meta { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.person .project { font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.people--sm .person .info { padding: 12px 12px 14px; }
.people--sm .person h3 { font-size: .95rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--forest-100); color: var(--forest-700);
}
.pill--gold { background: var(--ochre-100); color: var(--ochre-600); }
.profile-links { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.icon-link {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-100);
  color: var(--forest-700); transition: background .2s, color .2s;
}
.icon-link:hover { background: var(--forest-700); color: #fff; }
.icon-link svg { width: 17px; height: 17px; }

.cohort { margin-bottom: 40px; }
.cohort h3 { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 18px; }
.cohort h3 .pill { font-family: var(--font-body); }

/* ---------- Publications ---------- */
.pub-list { display: grid; gap: 14px; }
.pub {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.pub:hover { border-color: var(--forest-500); box-shadow: var(--shadow-sm); }
.pub-year { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--ochre-600); line-height: 1; }
.pub-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--forest-900); line-height: 1.35; margin: 0 0 6px; }
.pub-authors { font-size: .9rem; color: var(--ink-2); margin: 0 0 4px; }
.pub-authors mark { background: none; color: var(--forest-700); font-weight: 800; }
.pub-journal { font-size: .88rem; color: var(--muted); font-style: italic; margin: 0; }
.pub .btn { padding: 10px 16px; font-size: .85rem; white-space: nowrap; }
@media (max-width: 760px) {
  .pub { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .pub .btn { justify-self: start; }
}
.empty { text-align: center; color: var(--muted); padding: 40px; display: none; }
.empty.is-visible { display: block; }

/* ---------- Awards ---------- */
.award { display: flex; flex-direction: column; }
.award .media { aspect-ratio: 4/3; overflow: hidden; background: var(--sand-200); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.award .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.award:hover .media img { transform: scale(1.05); }
.award .body { padding: 18px 20px 22px; }
.award .body p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.award .year { font-weight: 800; color: var(--ochre-600); font-size: .8rem; letter-spacing: .08em; margin-bottom: 6px; display: block; }

.year-block { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.year-block:first-child { border-top: 0; padding-top: 0; }
.year-block h3 { font-size: 2.4rem; color: var(--forest-700); position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.news-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-items li { display: flex; gap: 14px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); }
.news-items li svg { flex: none; width: 22px; height: 22px; color: var(--ochre-500); margin-top: 2px; }
@media (max-width: 700px) { .year-block { grid-template-columns: 1fr; gap: 12px; } .year-block h3 { position: static; font-size: 2rem; } }

/* ---------- PI page ---------- */
.profile-grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.profile-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.profile-aside img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.profile-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.profile-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.profile-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.profile-card a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.profile-card a svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } .profile-aside { position: static; max-width: 420px; } }

.cv-list { list-style: none; padding: 0; margin: 0 0 40px; border-left: 2px solid var(--line); }
.cv-list li { position: relative; padding: 0 0 22px 28px; }
.cv-list li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--forest-500); box-shadow: 0 0 0 4px var(--sand-50); }
.cv-list li:first-child::before { background: var(--ochre-500); }
.cv-list .when { font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cv-list .what { font-weight: 700; color: var(--forest-900); font-size: 1.05rem; }
.cv-list .where { color: var(--ink-2); font-size: .95rem; }

.callout {
  display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--ochre-100); border: 1px solid var(--ochre-300); margin: 28px 0;
}
.callout svg { flex: none; width: 32px; height: 32px; color: var(--ochre-600); }
.callout p { margin: 0; color: var(--ink); }
.callout strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.1rem; }

/* ---------- Research detail ---------- */
.research-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.research-item:last-child { border-bottom: 0; }
.research-item:nth-child(even) .research-media { order: 2; }
.research-media { position: relative; }
.research-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.research-media .big-num { position: absolute; top: -26px; left: -10px; font-family: var(--font-display); font-size: 6rem; line-height: 1; font-weight: 700; color: var(--ochre-500); opacity: .9; text-shadow: 0 4px 20px rgba(0,0,0,.15); }
.method-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--forest-100); color: var(--forest-700); font-size: .85rem; font-weight: 700; }
@media (max-width: 860px) { .research-item { grid-template-columns: 1fr; } .research-item:nth-child(even) .research-media { order: 0; } .research-media .big-num { font-size: 4.5rem; top: -20px; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--forest-800), var(--forest-600)); color: #fff;
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .helix { opacity: .12; right: -60px; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--forest-100); color: var(--forest-700); display: grid; place-items: center; flex: none; }
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 800; margin: 0 0 2px; }
.contact-item p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--sand-200); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.step-list li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step-list li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ochre-500); color: var(--forest-900); display: grid; place-items: center; font-weight: 800; font-family: var(--font-display);
}
.step-list strong { display: block; color: var(--forest-900); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: rgba(255,255,255,.72); padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--ochre-300); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.footer-brand span { font-family: var(--font-display); font-size: 1.5rem; color: #fff; font-weight: 700; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.5); }
.ul-logo { width: 84px; background: #fff; border-radius: 12px; padding: 6px; margin-top: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--forest-700); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 22px; height: 22px; }

.note { font-size: .9rem; color: var(--muted); }
details.more { margin-top: 8px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--forest-600); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
details.more[open] summary::after { content: "–"; }

@media (max-width: 560px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 48px); }
  .hero-badges { display: none; }
  .hero .btn-row .btn { flex: 1 1 auto; }
}

/* Two people per row on phones to keep long team lists scannable */
@media (max-width: 520px) {
  .people, .people--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person .info { padding: 12px 12px 14px; }
  .person h3 { font-size: .95rem; }
  .person .project, .person .meta { font-size: .8rem; }
}
