/* BAIC Center — design tokens mirror the live Webflow site
   (Parkinsans type; warm earthy palette; soft, large radii). */
:root {
  /* palette (from baic.center) */
  --deep-charcoal: #1a1a2e;
  --soft-dark-grey: #4a4a5a;
  --offwhite: #f8f7f4;
  --warm-grey: #f6f3f0;
  --light-grey: #eeecea;
  --slate-blue: #3d5a80;
  --sage: #6b8f71;
  --warm-sand: #c9a96e;
  --muted-violet: #7b6fa0;
  --soft-teal: #5b9bae;
  --pale-gold: #fae6b9;

  /* roles */
  --ink: var(--deep-charcoal);
  --muted: var(--soft-dark-grey);
  --line: #e7e2db;
  --bg: #ffffff;
  --bg-soft: var(--offwhite);
  --bg-warm: var(--warm-grey);
  --brand: var(--slate-blue);
  --brand-soft: #e7ecf3;
  --accent: var(--warm-sand);

  --radius: 22px;
  --radius-lg: 32px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --font: "Parkinsans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.5rem; }
h3 { font-size: 1.2rem; }

img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -999px; background: var(--ink); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  background: var(--slate-blue); color: #fff; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.4rem 0.55rem; border-radius: 12px; font-size: 0.9rem;
}
.brand-text { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.brand-logo { height: 40px; width: auto; display: block; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 2px; }
.nav-contact { background: var(--slate-blue); color: #fff !important; padding: 0.45rem 1rem; border-radius: 999px; font-weight: 500; }
.nav-contact:hover { text-decoration: none; background: #33486a; }

/* ---------- Hero (bold diagonal sage->teal gradient, white text) ---------- */
.hero {
  background: linear-gradient(135deg, #6b8f71 0%, #5b9bae 100%);
  padding: 7rem 0 5rem;
  text-align: center;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
.hero-logo {
  width: min(440px, 84%); height: auto; margin-bottom: 1.9rem;
  background: rgba(236, 241, 242, 0.82); padding: 0.95rem 1.9rem; border-radius: 18px;
}
.hero h1 { max-width: 20ch; color: #f8f7f4; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero .tagline { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, 0.92); max-width: 62ch; margin: 0.75rem auto 0; font-weight: 400; }

.center-cta { text-align: center; margin-top: 2.25rem; }

/* ---------- Mission (image-left, text-right, cream band) ---------- */
.mission { background: #fae6b9; padding: 4.5rem 0; }
.mission-panel { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: center; }
.mission-art { text-align: center; }
.mission-art img { width: 100%; max-width: 520px; }
.eyebrow-pill {
  display: inline-block; background: #fff; color: var(--deep-charcoal);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.mission-text h2 { margin: 0.9rem 0 1rem; font-size: clamp(2rem, 3.5vw, 2.8rem); }
.mission-text p { color: var(--deep-charcoal); margin-bottom: 1.5rem; }
.btn-sand { background: var(--warm-sand); border-color: var(--warm-sand); color: #fff; }
.btn-sand:hover { background: #bb9759; border-color: #bb9759; }

/* ---------- Eyebrow pill variants ---------- */
.eyebrow-pill.light { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
.center-pill, .home-research .eyebrow-pill, section > .wrap > .eyebrow-pill.center-pill {
  display: block; width: max-content; margin: 0 auto 0.85rem;
}
.home-research .eyebrow-pill { margin-bottom: 0.85rem; }

/* ---------- What We Study icons ---------- */
.study-icon { width: 4rem; height: 4rem; display: grid; place-items: center; margin-bottom: 0.5rem; }
.study-icon img { width: 100%; height: 100%; object-fit: contain; }
.study-card { padding-top: 1.4rem; }

/* ---------- Research band (dark) ---------- */
.home-research { background: var(--deep-charcoal); color: #fff; }
.home-research .section-title { color: #fff; }
.home-research .section-intro { color: rgba(255, 255, 255, 0.75); }
.learn-more { display: inline-block; margin-top: 0.9rem; color: var(--warm-sand); font-weight: 600; font-size: 0.9rem; }
.btn-ghost.light { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost.light:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Green section (Why This Matters / Joining) ---------- */
.green-section { background: var(--sage); color: #fff; padding: 4.5rem 0; }
.green-panel { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: center; }
.green-art { position: relative; padding: 1.5rem; }
.green-art .art-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.green-art .art-card img { width: 100%; display: block; }
.green-art .doodle { position: absolute; width: 78px; height: auto; z-index: 2; }
.green-art .doodle-bulb { left: -6px; bottom: 6px; }
.green-art .doodle-squiggle { right: -6px; bottom: -10px; width: 120px; opacity: 0.95; }
.green-text h2 { margin-top: 0.75rem; color: #fff; font-size: clamp(2rem, 3.5vw, 2.8rem); }
.green-text p { color: rgba(255, 255, 255, 0.92); }
.green-text .eyebrow-pill { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: none; }
.contact-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.contact-row a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.contact-row a:hover { text-decoration: none; border-color: #fff; }

/* ---------- Newsletter band (photo bg) ---------- */
.newsletter-band { background-size: cover; background-position: center; color: #fff; padding: 4.5rem 0; }
.newsletter-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.newsletter-inner h2 { color: #fff; margin: 0.75rem 0 1rem; }
.newsletter-inner p { color: rgba(255, 255, 255, 0.9); }
.newsletter-inner .eyebrow-pill { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: none; }
.newsletter-inner .cta { margin-top: 1.5rem; display: flex; justify-content: center; }

/* ---------- Stats on photo ---------- */
.stats-photo { background-size: cover; background-position: center; }
.stats-photo .stat-num { color: #fff; }
.stats-photo .stat-label { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 820px) {
  .green-panel { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--slate-blue); line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* ---------- See Our Research CTA band ---------- */
.cta-band-wrap { padding-bottom: 1rem; }
.cta-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  background: #f7ecd6; border-radius: var(--radius-lg); padding: 2.75rem 3rem; overflow: hidden;
}
.cta-band-text h2 { margin-top: 0; }
.cta-band-text p { color: var(--soft-dark-grey); }
.cta-band-text .btn { margin-top: 0.5rem; }
.cta-band-art img { width: 100%; border-radius: var(--radius); display: block; }

@media (max-width: 820px) {
  .mission-panel { grid-template-columns: 1fr; gap: 1.75rem; }
  .cta-band { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

.btn { display: inline-block; padding: 0.8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem; border: 1.5px solid var(--slate-blue); transition: transform 0.12s ease, background 0.12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--slate-blue); color: #fff; }
.btn-primary:hover { background: #33486a; }
.btn-ghost { color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }
.section-title { text-align: center; margin: 0 0 0.5rem; }
.section-intro { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 2.25rem; font-size: 1.05rem; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card h3 { margin: 0.5rem 0 0.5rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 3rem; height: 3rem; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--offwhite); border-radius: 16px;
}
/* warm multi-accent rotation on icon tiles, echoing the live site */
.grid-4 .card:nth-child(4n+1) .card-icon { background: #e7ecf3; }
.grid-4 .card:nth-child(4n+2) .card-icon { background: #e9f0ea; }
.grid-4 .card:nth-child(4n+3) .card-icon { background: #f3eee2; }
.grid-4 .card:nth-child(4n+4) .card-icon { background: #ece8f1; }

a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 38px rgba(26, 26, 46, 0.10); }

/* ---------- Research list ---------- */
.research-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.research-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.research-card .thumb {
  aspect-ratio: 16/9; display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; letter-spacing: 0.05em;
  color: #fff; background: var(--slate-blue); overflow: hidden;
}
.research-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.research-card:nth-child(6n+2) .thumb { background: var(--sage); }
.research-card:nth-child(6n+3) .thumb { background: var(--warm-sand); }
.research-card:nth-child(6n+4) .thumb { background: var(--muted-violet); }
.research-card:nth-child(6n+5) .thumb { background: var(--soft-teal); }
.research-card:nth-child(6n+6) .thumb { background: var(--soft-dark-grey); }
.research-card .body { padding: 1.35rem 1.6rem 1.6rem; }
.research-card .byline { color: var(--warm-sand); font-size: 0.85rem; font-weight: 600; margin: 0 0 0.4rem; }
.research-card h3 { font-size: 1.15rem; line-height: 1.3; }

/* ---------- Page header / research detail ---------- */
.page-header { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 3.5rem 0 2.75rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin: 0 0 0.6rem; }
.byline { color: var(--sage); font-weight: 600; margin: 0.4rem 0; }
.status {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-top: 0.25rem;
}
.status-published { background: #e9f0ea; color: #4a6b50; }
.status-preprint { background: #f3eee2; color: #8a6d35; }
.status-in-progress { background: #ece8f1; color: #5f5380; }

.research-body { padding-top: 2.5rem; padding-bottom: 3.5rem; max-width: 760px; }
.research-hero { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; }
.publication { background: var(--bg-soft); border-left: 4px solid var(--warm-sand); border-radius: var(--radius-sm); padding: 1.3rem 1.6rem; margin: 0 0 2rem; }
.publication h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.publication dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.25rem; margin: 0.75rem 0 0; }
.publication dt { font-weight: 600; color: var(--muted); }
.publication dd { margin: 0; }
.back { margin-top: 2.5rem; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose.wide { max-width: 75ch; }
.prose h2:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.5rem; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 60ch; font-weight: 400; }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 2.25rem; }
.member { text-align: center; }
.member .avatar {
  width: 100%; max-width: 210px; aspect-ratio: 248 / 260; border-radius: 18px; overflow: hidden;
  margin: 0 auto 0.9rem; background: var(--slate-blue);
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-initials { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-weight: 600; font-size: 2rem; letter-spacing: 0.03em; }
.member:nth-child(5n+2) .avatar { background: var(--sage); }
.member:nth-child(5n+3) .avatar { background: var(--warm-sand); }
.member:nth-child(5n+4) .avatar { background: var(--muted-violet); }
.member:nth-child(5n+5) .avatar { background: var(--soft-teal); }
.member h3 { margin: 0; font-size: 1.05rem; }
.member .role { color: var(--muted); font-size: 0.88rem; font-weight: 500; margin: 0.15rem 0 0.35rem; }
.member .links a { font-size: 0.85rem; }

/* ---------- SEAL / dark audience band ---------- */
.audience { background: var(--deep-charcoal); color: #fff; }
.audience h2, .audience .section-intro { color: #fff; }
.audience .section-intro { color: rgba(255, 255, 255, 0.78); }
.audience .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.audience .card h3 { color: #fff; }
.audience .card p { color: rgba(255, 255, 255, 0.8); }

.qa-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.6rem; }
.qa h3 { margin: 0; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-charcoal); color: #b9bccb; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 3.25rem 0 2rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.75rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: #b9bccb; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-mark { margin-bottom: 0.85rem; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.25rem 0 2rem; font-size: 0.85rem; }
.footer-legal ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
