/* =========================================================
   Brown Foreign Policy Initiative — Shared Stylesheet
   Fonts:  Merriweather (headings/body/quotes)
           Proxima Nova (subheaders/captions) — substituted with
           Montserrat below since Proxima Nova is a licensed Adobe
           font. Swap the @import + font-family once BFPI has a
           Typekit/Adobe Fonts license for the real Proxima Nova.
   Colors: see :root custom properties, sourced from the BFPI
           Visual Identity guide.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --brown:      #351b0c;
  --red:        #8e1c1c;
  --navy:       #0d1b3d;
  --terracotta: #bb7654;
  --taupe:      #b7a99a;
  --cream:      #f8f5f2;

  --ink: #2a1810;
  --white: #ffffff;

  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', 'Proxima Nova', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1160px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(53, 27, 12, 0.08);
  --shadow-md: 0 8px 24px rgba(53, 27, 12, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--red);
  display: block;
  margin-bottom: 0.9em;
}

.lede {
  font-size: 1.15rem;
  color: #4a372c;
}

blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brown);
  border-left: 4px solid var(--terracotta);
  padding-left: 1.2em;
  margin: 1.5em 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95em 1.9em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: #741616; border-color: #741616; }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline:hover { background: var(--cream); color: var(--brown); }

.btn-dark {
  background: var(--brown);
  color: var(--cream);
  border-color: var(--brown);
}
.btn-dark:hover { background: var(--navy); border-color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown);
  border-bottom: 1px solid rgba(248, 245, 242, 0.14);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.15;
  white-space: nowrap;
}

.brand img { height: 42px; width: 42px; }

.brand small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius);
  position: relative;
}

.main-nav a:hover { color: var(--terracotta); }

.main-nav a.active { color: var(--terracotta); }

.main-nav a.apply-link {
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
}
.main-nav a.apply-link:hover { background: #741616; color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--brown) 0%, #241207 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(248,245,242,0.16) 0%, rgba(248,245,242,0) 70%);
  pointer-events: none;
  animation: heroGlowMove 11s ease-in-out infinite;
}

@keyframes heroGlowMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 25px) scale(1.12); }
}

.hero h1 { animation: fadeUpIn 0.8s ease both 0.05s; }
.hero .lede { animation: fadeUpIn 0.8s ease both 0.22s; }
.hero .hero-actions { animation: fadeUpIn 0.8s ease both 0.38s; }

@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  color: var(--taupe);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-indicator .chevron {
  width: 34px; height: 34px;
  border: 2px solid var(--taupe);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  animation: bounceChevron 1.8s ease-in-out infinite;
  transition: border-color 0.2s ease;
}
.scroll-indicator:hover { color: var(--cream); }
.scroll-indicator:hover .chevron { border-color: var(--cream); }
@keyframes bounceChevron {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 108px 28px 96px;
  position: relative;
  z-index: 1;
}

.hero.small .hero-inner { padding: 72px 28px 64px; }

.hero-inner .eyebrow { color: var(--terracotta); }

.hero h1 { color: var(--white); max-width: 780px; }

.hero .lede {
  color: var(--taupe);
  max-width: 620px;
  font-size: 1.2rem;
  margin-bottom: 1.8em;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(248,245,242,0.18);
  padding-top: 32px;
}

.hero-meta div strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--terracotta);
}

.hero-meta div span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }

section.tight { padding: 56px 0; }

.section-head {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left { margin: 0 0 48px; text-align: left; }

.bg-brown { background: var(--brown); color: var(--cream); }
.bg-brown h2, .bg-brown h3, .bg-brown h4 { color: var(--white); }
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
/* Cards keep dark text even inside a dark section (higher specificity wins) */
.bg-brown .card h3, .bg-brown .card h4,
.bg-navy .card h3, .bg-navy .card h4 { color: var(--brown); }
.bg-brown .card p, .bg-navy .card p { color: var(--ink); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-taupe { background: #ede6df; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,27,12,0.06);
  border-top: 4px solid var(--terracotta);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card .icon-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 0.5em; }

.card p:last-child { margin-bottom: 0; }

.card-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--red);
  text-transform: uppercase;
  display: inline-block;
  margin-top: 14px;
}
.card-link:hover { color: var(--brown); }

.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tag.red { background: var(--red); }
.tag.terracotta { background: var(--terracotta); }

/* ---------- Mini project cards (home page preview) ---------- */
.mini-project-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,27,12,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-project-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.mini-project-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.mini-project-card h4 { margin: 0 0 3px; font-size: 1.02rem; color: var(--brown); }
.mini-project-topic {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
}
.mini-project-arrow {
  margin-left: auto;
  color: var(--terracotta);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.mini-project-card:hover .mini-project-arrow { transform: translateX(4px); }

/* ---------- Current-projects preview cards (home page) ---------- */
.preview-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,27,12,0.06);
  border-top: 4px solid var(--terracotta);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.preview-card h4 { color: var(--brown); margin-bottom: 0.5em; font-size: 1.1rem; }
.preview-card p { color: #4a372c; font-size: 0.94rem; margin-bottom: 0; }
.preview-card .card-link { margin-top: auto; padding-top: 16px; }
.preview-card.logo-card { align-items: flex-start; }
.preview-card .preview-logo {
  height: 46px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 18px;
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Project / Trip blocks ---------- */
.project-block {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(53,27,12,0.12);
}
.project-block:last-child { border-bottom: none; }

.project-number {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--taupe);
  line-height: 1;
}

.project-block h3 { margin-bottom: 0.2em; }

.project-topic {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8em;
}

.research-areas {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.research-areas li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: #4a372c;
}
.research-areas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 2px;
}

.role-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--cream);
  border-left: 3px solid var(--navy);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--brown);
}
.role-note strong { color: var(--navy); }

/* ---------- Project carousel ---------- */
.carousel-wrap { position: relative; }

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 20px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--terracotta) transparent;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: var(--terracotta); border-radius: 8px; }
.carousel::-webkit-scrollbar-track { background: transparent; }

.carousel-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(400px, 84vw);
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,27,12,0.06);
  border-top: 4px solid var(--terracotta);
  display: flex;
  flex-direction: column;
}

.carousel-card .project-number {
  font-size: 2rem;
  margin-bottom: 6px;
}
.carousel-card h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.carousel-card p { font-size: 0.94rem; color: #4a372c; }
.carousel-card .research-areas { margin-top: 12px; }
.carousel-card .research-areas li { font-size: 0.88rem; margin-bottom: 8px; }

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -6px 0 40px;
}
.carousel-nav button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--brown);
  background: var(--white);
  color: var(--brown);
  font-size: 1.1rem;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.carousel-nav button:hover { background: var(--brown); color: var(--cream); }

/* ---------- Disabled / coming-soon buttons ---------- */
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--taupe);
  border-color: var(--taupe);
  color: var(--white);
}
.coming-soon-note {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #8a7566;
  margin-top: 12px;
}

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

/* Modifier for small rosters (e.g. Project Leads) so cards don't stretch to fill the row */
.grid-people-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 26px;
}
.grid-people-compact .person-card {
  width: 240px;
  flex: 0 0 auto;
}

.person-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,27,12,0.06);
  border-top: 4px solid var(--terracotta);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  flex-shrink: 0;
  width: 148px; height: 148px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 22px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- Analysts (dense roster grid) ---------- */
.grid-analysts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.analyst-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,27,12,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.analyst-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.person-card h3 { margin-bottom: 3px; font-size: 1.2rem; }

.person-role {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}

.person-meta {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: #6b5847;
}

.person-meta a { color: var(--navy); }
.person-meta a:hover { color: var(--red); }

.placeholder-card {
  background: var(--white);
  border: 2px dashed var(--taupe);
  border-radius: var(--radius);
  padding: 52px 28px;
  text-align: center;
  color: #6b5847;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.placeholder-card strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--brown);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 76px 28px;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.4em; }
.cta-banner p { color: #f3d9d9; max-width: 560px; margin: 0 auto 1.8em; font-size: 1.1rem; }

/* ---------- Pillars / numbered list (about) ---------- */
.pillar {
  display: flex;
  gap: 22px;
  margin-bottom: 40px;
}
.pillar .pillar-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--white);
  background: var(--navy);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Values grid ---------- */
.value-item {
  padding: 26px 0;
  border-top: 1px solid rgba(53,27,12,0.12);
}
.value-item:last-child { border-bottom: 1px solid rgba(53,27,12,0.12); }

/* ---------- Apply steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0; padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 62px;
  margin-bottom: 32px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.steps li h4 { margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(160deg, var(--brown) 0%, #241207 100%);
  color: var(--taupe);
  padding: 72px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(248,245,242,0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer-brand img { height: 46px; width: 46px; }

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { font-family: var(--font-sans); font-size: 0.9rem; color: var(--taupe); transition: color 0.2s ease; }
.site-footer a:hover { color: var(--terracotta); }

.footer-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--white);
  border-bottom: 1px solid rgba(248,245,242,0.32);
  padding-bottom: 3px;
  margin-bottom: 22px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-email-link:hover { color: var(--terracotta); border-color: var(--terracotta); }
.footer-email-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.footer-social-row {
  display: flex;
  gap: 12px;
}
.footer-icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(248,245,242,0.06);
  border: 1px solid rgba(248,245,242,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  transition: all 0.2s ease;
}
.footer-icon-btn svg { width: 18px; height: 18px; }
.footer-icon-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--brown);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #8f7c6c;
}

/* ---------- Publications ---------- */
.publication-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,27,12,0.06);
  border-left: 4px solid var(--navy);
}
.publication-card h3 { margin-bottom: 6px; }
.publication-card .pub-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}
.publication-card p { margin-bottom: 0; color: #4a372c; max-width: 560px; }

.article {
  max-width: 820px;
  margin: 0 auto;
}
.article h2 { margin-top: 2em; }
.article h2:first-child { margin-top: 0; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.article table caption { text-align: left; font-size: 0.82rem; color: #6b5847; margin-bottom: 8px; }
.article th, .article td {
  border: 1px solid rgba(53,27,12,0.14);
  padding: 10px 12px;
  text-align: left;
}
.article th { background: var(--cream); color: var(--brown); font-weight: 700; }
.article .authors {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #6b5847;
  margin-bottom: 2.2em;
}
.article ol.works-cited {
  padding-left: 1.4em;
  font-size: 0.92rem;
  color: #4a372c;
}
.article ol.works-cited li { margin-bottom: 0.9em; }
.article ol.works-cited a { color: var(--navy); word-break: break-word; }
.article ol.works-cited a:hover { color: var(--red); }
.pub-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 1.6em 0 0;
}

/* ---------- Page header (non-home hero) ---------- */
.page-header {
  background: var(--navy);
  color: var(--cream);
  padding: 64px 0 56px;
}
.page-header h1 { color: var(--white); margin-bottom: 0.3em; }
.page-header .lede { color: var(--taupe); max-width: 640px; }
.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}

/* ---------- Page-header entrance animations ---------- */
@keyframes phFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes phScaleIn { from { opacity: 0; transform: scale(0.93); } to { opacity: 1; transform: scale(1); } }
@keyframes phSlideLeft { from { opacity: 0; transform: translateX(-56px); } to { opacity: 1; transform: translateX(0); } }
@keyframes phSlideRight { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: translateX(0); } }

.page-header.anim-fadeup .container > * { animation: phFadeUp 0.75s ease both; }
.page-header.anim-scale .container > * { animation: phScaleIn 0.65s ease both; }
.page-header.anim-left .container > * { animation: phSlideLeft 0.65s ease both; }
.page-header.anim-right .container > * { animation: phSlideRight 0.65s ease both; }

.page-header .container > *:nth-child(2) { animation-delay: 0.12s; }
.page-header .container > *:nth-child(3) { animation-delay: 0.24s; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo-bg { width: 320px; height: 320px; opacity: 0.12; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--brown);
    flex-direction: column; align-items: stretch; padding: 12px 20px 24px; gap: 2px;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 10px; border-bottom: 1px solid rgba(248,245,242,0.14); border-radius: 0; }
  .main-nav a.apply-link { margin-top: 10px; text-align: center; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-meta { gap: 28px; }
  .project-block { grid-template-columns: 56px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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