/* ============================================================
   Global Economics Lab — shared stylesheet
   Style: data / mission-first, palette matched to
   gitagopinath.github.io (navy / slate blue)
   ============================================================ */

:root {
  --crimson: #3182CE;       /* accent blue — buttons, links, active states */
  --crimson-dark: #1A365D;  /* navy — hover states, headings, dark sections */
  --crimson-tint: #EAF2FB;  /* light blue tint — hover backgrounds */
  --ink: #1A365D;           /* navy — headings, hero/footer backgrounds */
  --charcoal: #2D3748;      /* slate — body text */
  --grey: #718096;          /* muted slate — secondary text */
  --line: #E2E8F0;          /* border color */
  --paper: #FFFFFF;
  --cream: #F7FAFC;         /* light background */
  --max: 1160px;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* On larger screens, let the shared content column use more of the
   available width instead of leaving wide empty margins. */
@media (min-width: 1440px) {
  :root { --max: 1320px; }
}
@media (min-width: 1800px) {
  :root { --max: 1480px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

p { margin: 0 0 18px; color: var(--charcoal); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 16px;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 10px;
  display: block;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  border: 2px solid var(--crimson);
  transition: all 0.15s ease;
}
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--crimson); }
.btn-ghost:hover { background: var(--crimson); color: #fff; text-decoration: none; }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--crimson); }

/* ---------------- Header / Tab Nav (single line, narrow, solid) ---------------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  color: var(--ink);
  justify-self: start;
}
.logo:hover { text-decoration: none; }
.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
}
.logo-word {
  font-family: 'Space Grotesk', var(--sans);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo-word .logo-initial {
  color: var(--crimson);
  font-weight: 800;
}
.logo-globe {
  display: inline-block;
  vertical-align: -0.05em;
  color: currentColor;
}
.logo-stack .logo-word:nth-of-type(2) { margin-left: 0.72em; }
.logo-stack .logo-word:nth-of-type(3) { margin-left: 1.32em; }

.tab-nav-inner {
  display: flex;
  justify-content: center;
  gap: 4px;
  justify-self: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-nav-inner::-webkit-scrollbar { display: none; }
.tab-link {
  flex-shrink: 0;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab-link:hover { color: var(--crimson); text-decoration: none; background: var(--crimson-tint); }
.tab-link.active { color: var(--crimson); border-bottom-color: var(--crimson); }
.site-header.scrolled .tab-link.active { color: var(--crimson); border-bottom-color: var(--crimson); }

@media (max-width: 760px) {
  .header-row { grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 8px 20px; }
  .logo { justify-self: center; }
  .tab-nav-inner { justify-self: center; width: 100%; }
}
@media (max-width: 560px) {
  .tab-nav-inner { justify-content: flex-start; }
  .tab-link { padding: 10px 14px; font-size: 13.5px; }
}

/* ---------------- Hero (mission-first) ---------------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 84px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--crimson) 0%, rgba(49,130,206,0) 70%);
  opacity: 0.35;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: #90CDF4; }
.hero h1 {
  color: #fff;
  font-size: clamp(26px, 3.6vw, 44px);
  max-width: 780px;
  margin-bottom: 22px;
}
.hero p.lede {
  font-family: var(--serif);
  font-size: 20px;
  max-width: 680px;
  color: #D2E1F0;
  margin-bottom: 30px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-header {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 48px;
}
.page-header .eyebrow { color: #90CDF4; }
.page-header h1 { color: #fff; font-size: clamp(24px, 3vw, 36px); margin-bottom: 10px; }
.page-header p { color: #D2E1F0; font-size: 17px; max-width: 700px; margin: 0; }

/* ---------------- Sections ---------------- */
section { padding: 64px 0; }
section.tight { padding: 48px 0; }
section#people { padding-top: 8px; }
.bg-cream { background: var(--cream); }
.bg-tint { background: var(--crimson-tint); }
.bg-dark { background: var(--ink); }
.bg-dark .section-head h2,
.bg-dark .person-card h4 { color: #fff; }
.bg-dark .eyebrow { color: #90CDF4; }
.bg-dark .person-card .role { color: #90CDF4; }
.bg-dark .view-bio { color: #90CDF4; }
.bg-dark button.faculty-card:hover h4 { color: #90CDF4; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(21px, 2.4vw, 30px); }
#mission .section-head { max-width: 920px; }
#mission .section-head h2 { font-size: clamp(20px, 2.3vw, 26px); }

/* Home page opens straight into Featured Research: full-bleed image grid, no hero */
.research-hero-section { padding: 0; overflow: hidden; }
.research-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3px;
  height: 560px;
}
.research-hero.single { display: block; height: 480px; }
/* Homepage featured-projects hero: a 2/3 + 1/3 split. The left two-thirds
   is the current project in full (image + title + subtitle + CTA); the
   right third is a smaller, dimmed preview of whichever project is coming
   up next in the rotation — a teaser you can also click straight through
   to. Both panels flow/fade together each time the rotation advances. A
   row of 6 dots sits underneath so any of the six can be jumped to
   directly. */
.research-hero.split-flow {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3px;
  height: 480px;
}
.research-hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 0;
  transition: transform .35s ease, opacity .8s ease;
}
.research-hero-item.solo:hover .research-hero-slide-bg { transform: scale(1.04); }
.research-hero-item.solo.is-leaving .research-hero-slide-bg { opacity: 0; }
.research-hero-item.solo.is-entering .research-hero-slide-bg { transition: none; opacity: 0; }
.research-hero-next {
  position: relative;
  display: block;
  overflow: hidden;
  height: 100%;
  color: #fff;
  text-decoration: none;
}
.research-hero-next:hover { text-decoration: none; }
.research-hero-next-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, opacity .5s ease;
}
.research-hero-next:hover .research-hero-next-img { transform: scale(1.04); }
.research-hero-next.is-leaving .research-hero-next-img,
.research-hero-next.is-leaving .research-hero-next-overlay { opacity: 0; }
.research-hero-next.is-entering .research-hero-next-img,
.research-hero-next.is-entering .research-hero-next-overlay { transition: none; opacity: 0; }
.research-hero-next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,14,24,0.88) 0%, rgba(6,14,24,0.4) 55%, rgba(6,14,24,0.2) 100%);
}
.research-hero-next-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  transition: opacity .5s ease;
}
.research-hero-next-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.research-hero-next-title {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.3;
}
.research-hero-secondary { display: flex; flex-direction: column; gap: 3px; height: 100%; min-height: 0; overflow: hidden; }
.research-hero-item {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  height: 100%;
}
.research-hero-item:hover { text-decoration: none; }
.research-hero-item:hover img { transform: scale(1.04); }
.research-hero-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.research-hero-secondary .research-hero-item { flex: 1; min-height: 0; }
.research-hero-item img.img-tariffs { object-position: 70% 35%; }
.research-hero-item img.img-g7 { object-position: center 55%; }
.research-hero-item::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Keeps a light wash across the full tile (not just the bottom) so the
     now vertically-centered caption stays legible wherever it lands. */
  background: linear-gradient(to top, rgba(10,20,30,0.85) 0%, rgba(10,20,30,0.4) 50%, rgba(10,20,30,0.22) 100%);
  transition: background .35s ease;
}
.research-hero-item.primary::after {
  /* The G7 tile's photo runs lighter than a typical dark hero image, so
     use a stronger, more uniform wash to keep the white caption legible. */
  background: linear-gradient(to top, rgba(6,14,24,0.9) 0%, rgba(6,14,24,0.62) 45%, rgba(6,14,24,0.48) 100%);
}
.research-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 250px 36px 30px;
  overflow: hidden;
  transition: transform .8s ease, opacity .8s ease;
}
/* Homepage project pager transition: content slides out to the left and
   fades, then the new project's text slides in from the right — reads
   as turning a page rather than a plain crossfade. */
.research-hero-item.is-leaving .research-hero-content { transform: translateX(-24px); opacity: 0; }
.research-hero-item.is-entering .research-hero-content { transition: none; transform: translateX(24px); opacity: 0; }
.research-hero-secondary .research-hero-content,
.research-hero-item.secondary .research-hero-content { padding: 250px 28px 30px; justify-content: flex-start; }
.research-hero-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #90CDF4;
  margin-bottom: 10px;
}
.research-hero-item.primary h2 { color: #fff; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 30px); line-height: 1.2; max-width: 520px; margin-bottom: 6px; }
.research-hero-subtitle { color: rgba(255,255,255,0.85); font-size: clamp(13.5px, 1.3vw, 16px); font-weight: 400; max-width: 480px; margin: 0 0 20px; }
.research-hero-secondary h3,
.research-hero-item.secondary h3 { color: #fff; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 30px); line-height: 1.2; max-width: 420px; margin-bottom: 10px; }
.research-hero-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 4px;
  transition: opacity .25s ease, transform .25s ease;
}
/* Hover-to-reveal only on devices that actually have a hover state (mouse
   pointers). Touch devices have no hover, so scoping the hidden state to
   (hover: hover) keeps the button permanently visible on phones instead of
   permanently hidden. */
@media (hover: hover) {
  .research-hero-cta-btn { opacity: 0; transform: translateY(6px); }
  .research-hero-item:hover .research-hero-cta-btn,
  .research-hero-item:focus-visible .research-hero-cta-btn { opacity: 1; transform: translateY(0); }
}
.research-hero-cta-link {
  display: inline-block;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.research-hero-item:hover .research-hero-cta-link,
.research-hero-item:focus-visible .research-hero-cta-link { opacity: 1; transform: translateY(0); }
.research-hero-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
@media (max-width: 760px) {
  .research-hero { grid-template-columns: 1fr; height: auto; }
  .research-hero.single { height: auto; }
  /* The 2/3 + 1/3 split doesn't leave enough room for either panel to read
     well on a phone screen, and the dots below already give a clear way to
     browse the other five projects — so on mobile, show only the current
     project full-width and drop the "next" preview panel entirely. */
  .research-hero.split-flow { grid-template-columns: 1fr; height: auto; }
  .research-hero-next { display: none; }
  .research-hero-item.primary { height: 340px; }
  /* On phones the flowing tile is shorter than its desktop 480px, so the
     250px top padding meant for the tall desktop hero would crush the
     title/subtitle/button into a tiny sliver at the bottom (or clip them
     entirely). Give it its own height and anchor the content to the bottom
     with mobile-sized padding instead, same treatment used for the old
     secondary tile. */
  .research-hero-item.solo { height: 340px; }
  .research-hero-item.solo .research-hero-content { padding: 20px 22px 26px; justify-content: flex-end; }
  .research-hero-secondary { height: auto; }
  .research-hero-secondary .research-hero-item { height: 220px; flex: none; }
  /* The secondary tile's content box inherits a 250px top padding meant for
     the much taller desktop tiles — in the shorter mobile row that pushes
     the title almost entirely out of view. Anchor it to the bottom instead. */
  .research-hero-item.secondary .research-hero-content { padding: 20px 24px 24px; justify-content: flex-end; }
}

/* Homepage project pager: one project's image + title flows across the full
   width at a time; a single row of 6 dots sits underneath the hero (one dot
   per project, not per pair) so any of the six can be jumped to directly. */
.research-hero-dots-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  background: #fff;
}
.research-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.research-hero-dot:hover { background: var(--crimson); }
.research-hero-dot.is-active { background: var(--crimson); transform: scale(1.25); }
@media (max-width: 760px) {
  /* Dots are the primary way to jump between projects on touch devices
     (no hover state to reveal the button), so give them a slightly larger
     tap target and tighter vertical padding to match the shorter hero. */
  .research-hero-dots-flow { padding: 14px 0; gap: 12px; }
  .research-hero-dot { width: 9px; height: 9px; }
}

.subtab-section { padding: 0 0 8px; }
.subtab-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}
.subtab-btn {
  border: none;
  background: transparent;
  color: var(--grey);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 2px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.subtab-btn:hover { color: var(--crimson); }
.subtab-btn.active { color: var(--ink); border-bottom-color: var(--crimson); }

.mission-essay { max-width: 760px; }
.mission-essay h3 { font-size: 19px; margin-top: 32px; }

/* Mission FAQ accordion (About page) */
.mission-body { display: block; }
.mission-faq { max-width: 952px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.faq-item-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.faq-question, .faq-answer { position: relative; z-index: 1; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 2px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.faq-question:hover { color: var(--crimson); }
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--crimson);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: transform .2s ease;
}
.faq-item[data-open="true"] .faq-icon { transform: rotate(135deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}
.faq-answer-inner { padding: 0 2px 24px; max-width: 960px; }
.faq-answer p {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--ink); font-weight: 700; }
.mission-pivot { color: var(--ink); font-weight: 700; }
.faq-answer-list {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
  counter-reset: faq-step;
}
.faq-answer-list li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 42px;
}
.faq-answer-list li::before {
  counter-increment: faq-step;
  content: counter(faq-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans, inherit);
  font-size: 13px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}
.faq-answer-list li:last-child { margin-bottom: 0; }
.faq-answer-list:last-child { margin-bottom: 0; }
.faq-answer-checklist {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}
.faq-answer-checklist li { position: relative; margin-bottom: 16px; padding-left: 34px; }
.faq-answer-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.faq-answer-checklist li:last-child { margin-bottom: 0; }
.faq-answer-checklist:last-child { margin-bottom: 0; }
.faq-answer .faq-callout {
  background: var(--crimson-tint);
  border-left: 3px solid var(--crimson);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin-top: 18px;
}
.mission-essay h3:first-child { margin-top: 0; }
.mission-essay p { font-size: 16px; }

/* Stat / mission bar */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-bar .stat {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}
.stat-bar .stat:last-child { border-right: none; }
.stat-bar .stat .num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--crimson);
  display: block;
  margin-bottom: 6px;
}
.stat-bar .stat .label { font-size: 14.5px; color: var(--grey); margin: 0; }

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

/* Topic cards (Our Work > Topics) */
.topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 54, 93, 0.14);
}
.topic-card .cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream);
}
.topic-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.topic-card:hover .cover img { transform: scale(1.06); }
/* The AI circuit-brain image is nearly full-height already, so the default
   center crop on a 16:9 card cuts into the top of the brain. Bias the crop
   upward so the whole shape stays in frame. */
.topic-card .cover img.img-ai3 { object-position: center 15%; }
.topic-card .body { padding: 20px 22px 24px; }
.topic-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.topic-card p { font-size: 13.5px; color: var(--grey); margin-bottom: 8px; }
.view-topic { font-size: 13px; font-weight: 700; color: var(--crimson); margin-bottom: 0 !important; }

/* "Our Research" (Resources & Data page) — horizontal topic tabs above a
   split panel (title/description/links left, image right), inspired by
   Stanford Digital Economy Lab's layout. Mobile-first: tabs scroll
   horizontally and the panel stacks to a single column. */
.research-explore-tabs {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 56px;
}
.research-explore-tabs::-webkit-scrollbar { display: none; }
.research-tab {
  position: relative;
  flex: none;
  background: none;
  border: none;
  padding: 8px 0 6px;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--grey);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.research-tab:hover { color: var(--ink); }
.research-tab.active { color: var(--ink); font-weight: 700; }
/* Progress bar under the active tab: JS grows this to 100% width over the
   5s auto-advance interval (Stanford Digital Economy Lab-style "loading"
   indicator), then resets to 0 on the next tab. */
.research-tab-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--ink);
  pointer-events: none;
}
.research-pane { display: none; }
.research-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.research-pane-text { display: flex; flex-direction: column; gap: 22px; }
.research-pane-text h3 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.research-pane-text p { font-size: 17.5px; color: var(--charcoal); line-height: 1.55; margin: 0; max-width: 440px; }
.research-pane-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 4px; }
.research-pane-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0 0 3px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid transparent;
  cursor: pointer;
}
.research-pane-link:hover { color: var(--crimson); border-color: var(--crimson); }
.research-pane-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 540px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(26, 54, 93, 0.14);
}
.research-pane-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.82;
  filter: saturate(0.85) contrast(1);
}
.research-pane-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(26, 54, 93, 0.38) 0%, rgba(26, 54, 93, 0.16) 50%, rgba(26, 54, 93, 0.34) 100%);
  pointer-events: none;
}
/* The AI topic image is already quite dark, so use a lighter touch than
   the shared treatment above so it doesn't read as muddy. */
.research-pane[data-slide="emerging-tech"] .research-pane-media img { opacity: 0.96; }
.research-pane[data-slide="emerging-tech"] .research-pane-media::after {
  background: linear-gradient(165deg, rgba(26, 54, 93, 0.18) 0%, rgba(26, 54, 93, 0.04) 50%, rgba(26, 54, 93, 0.16) 100%);
}
.research-explore-controls { display: flex; gap: 10px; margin-top: 40px; }
.research-control-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.research-control-btn:hover { background: var(--crimson-tint); border-color: var(--crimson); color: var(--crimson); }
.research-control-btn svg { width: 17px; height: 17px; }
.research-control-btn .icon-play { width: 15px; height: 15px; }
@media (max-width: 860px) {
  .research-explore-controls { display: none; }
}
@media (max-width: 860px) {
  /* On mobile, ditch the tab-switcher entirely and show every topic as its
     own stacked card — easier to scan than tapping tabs on a small screen. */
  .research-explore-tabs { display: none; }
  .research-pane {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    align-items: stretch !important;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 26px rgba(26, 54, 93, 0.06);
  }
  /* Explicit width (not just max-width) so every topic's box resolves to
     the same size regardless of that topic's source image dimensions —
     without it, a media box with only an img child can shrink-to-fit the
     image's own intrinsic size on some mobile browsers, making cards
     built from differently-sized source photos look mismatched. */
  .research-pane-media { justify-self: center; width: 100%; max-width: 340px; aspect-ratio: 16 / 10; }
  .research-pane-text h3 {
    font-size: clamp(24px, 6vw, 30px);
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .research-pane-text h3::after { content: '\2192'; font-size: 0.7em; }
  .research-pane-text p { max-width: none; }
}

/* "Find the research you're looking for" search bar (Resources & Data page)
   — a short navy band between the topic explorer and the data screen,
   letting visitors jump straight to a specific paper/speech/article by
   title or author across all four topics. */
.research-search-section { background: var(--ink); padding: 56px 0; text-align: center; }
.research-search-section h2 { color: #fff; font-size: clamp(21px, 2.4vw, 28px); max-width: 640px; margin: 0 auto 22px; }
.research-search { position: relative; max-width: 640px; margin: 0 auto; }
.research-search-form { position: relative; display: flex; align-items: center; }
.research-search-icon {
  position: absolute;
  left: 18px;
  width: 19px;
  height: 19px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
#research-search-input {
  width: 100%;
  padding: 15px 18px 15px 50px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 15px;
}
#research-search-input::placeholder { color: rgba(255, 255, 255, 0.5); }
#research-search-input:focus { outline: none; border-color: var(--crimson); background: rgba(255, 255, 255, 0.1); }
.research-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  overflow-y: auto;
  max-height: 360px;
  z-index: 20;
}
.research-search-results[hidden] { display: none; }
.research-search-result {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 13px 18px;
  cursor: pointer;
  font: inherit;
}
.research-search-result:last-child { border-bottom: none; }
.research-search-result:hover, .research-search-result:focus-visible { background: var(--crimson-tint); }
.research-search-result-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.research-search-result-meta { display: block; font-size: 12.5px; color: var(--grey); margin-top: 3px; }
.research-search-empty { padding: 16px 18px; font-size: 14px; color: var(--grey); }

/* "Updates" + "In the News" two-column homepage section (site card language) */
.updates-press-grid { align-items: stretch; grid-template-columns: 1fr 300px; gap: 72px; justify-content: end; }
.upc {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 34px;
  box-shadow: 0 2px 10px rgba(26, 54, 93, 0.05);
}
.upc-updates { border-top: 4px solid var(--crimson); }
.upc-news { border-top: 4px solid var(--ink); }
.upc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.upc-label { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.upc-all { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--crimson); text-decoration: none; white-space: nowrap; }
.upc-all:hover { text-decoration: underline; }
.upc-list { max-height: 380px; overflow-y: auto; padding-right: 6px; }
.upc-list::-webkit-scrollbar { width: 5px; }
.upc-list::-webkit-scrollbar-track { background: transparent; }
.upc-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.upc-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.upc-item:last-child { border-bottom: none; }
.upc-item-plain { cursor: default; }
.upc-item-plain:hover .upc-body h3 { text-decoration: none; }
.upc-thumb { width: 88px; height: 66px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.upc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upc-body { min-width: 0; }
.upc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--crimson);
  border-bottom: 1.5px solid var(--crimson);
  padding-bottom: 2px;
  margin-bottom: 6px;
}
.upc-body h3 { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 0 0 6px; }
.upc-item:hover .upc-body h3 { text-decoration: underline; }
.upc-date { font-size: 12px; color: var(--grey); margin: 0; }
.upc-press-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.upc-press-item:last-child { border-bottom: none; }
.upc-press-logo {
  width: 76px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}
.upc-press-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.upc-press-outlet { display: none; }
.upc-press-date { font-size: 11.5px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.04em; }
.upc-press-author { font-size: 12.5px; color: var(--crimson); font-weight: 600; }
.upc-press-title { font-style: italic; font-size: 15px; color: var(--charcoal); line-height: 1.4; margin-top: 2px; }
.upc-press-item:hover .upc-press-title { text-decoration: underline; }
@media (max-width: 500px) {
  .upc-press-logo { width: 56px; height: 34px; }
}
.upc-subscribe {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, var(--crimson-tint) 55%, #d3e6f9 100%);
  border: 1px solid var(--line);
  border-top: 4px solid var(--crimson);
  justify-content: center;
  overflow: hidden;
  padding: 24px 22px;
  align-self: start;
}
.upc-subscribe-inner { position: relative; z-index: 1; max-width: 100%; }
.upc-subscribe-inner h3 { font-family: var(--serif); color: var(--ink); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.25; margin-bottom: 8px; }
.upc-subscribe-inner p { color: var(--charcoal); font-size: 12.5px; line-height: 1.5; margin-bottom: 16px; }
.upc-subscribe-form { display: flex; flex-direction: column; gap: 10px; }
.upc-subscribe-form input[type="email"] {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
}
.upc-subscribe-form input[type="email"]:focus { outline: 2px solid var(--crimson); outline-offset: 1px; }
.upc-subscribe-form .btn { width: 100%; text-align: center; font-size: 12.5px; padding: 9px 14px; }
@media (max-width: 900px) {
  .updates-press-grid { grid-template-columns: 1fr; gap: 28px; }
  .upc { padding: 28px 26px; }
  .upc-subscribe-inner { max-width: none; }
}

/* "Our Focus" homepage cards — reuse .topic-card as a plain photo + title tile (Opportunity Insights style) */
.focus-section .eyebrow { color: #90CDF4; }
.focus-card, .focus-card:hover { text-decoration: none; }
.focus-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  /* Stack cover + label as a column so the label box can grow to fill
     the full remaining height when the grid stretches shorter cards to
     match a taller (two-line) sibling — otherwise the leftover space
     shows the card's own translucent background instead of solid white. */
  display: flex;
  flex-direction: column;
}
.focus-card:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38); }
.focus-card .cover { flex-shrink: 0; }
.focus-card .body {
  flex: 1;
  padding: 18px 16px 22px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top: 1px solid var(--line);
}
.focus-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink) !important;
}
.focus-summary { max-width: 700px; margin: 44px auto 0; color: #D2E1F0; text-align: center; }

/* "Discover our data" screen (Resources & Data page) — a dropdown selector
   next to a live embedded visualization "screen", distinct in style from
   the "Explore our research" carousel above it. */
.data-screen {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(26, 54, 93, 0.08);
}
.data-screen-controls {
  padding: 34px 28px;
  background: var(--ink);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.data-screen-select-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #90CDF4;
  font-weight: 700;
}
.data-screen-list { display: flex; flex-direction: column; gap: 6px; }
.data-screen-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.data-screen-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.data-screen-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--crimson);
  color: #fff;
}
.data-screen-desc { font-size: 14px; color: #C7D3E3; line-height: 1.55; margin: 0; }
.data-screen-extra-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-top: auto;
  padding-top: 14px;
  transition: color 0.15s ease, gap 0.15s ease;
}
.data-screen-extra-link::after {
  content: '\2192';
  font-size: 13px;
  transition: transform 0.15s ease;
}
.data-screen-extra-link:hover { color: #90CDF4; gap: 8px; }
.data-screen-views {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 9px 34px 9px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.data-screen-views:hover { background-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
.data-screen-views:focus { outline: none; border-color: var(--crimson); }
.data-screen-views[hidden] { display: none; }
.data-screen-views option { color: #0A1420; background: #fff; }
.data-screen-controls .btn { align-self: flex-start; margin-top: auto; padding: 10px 20px; font-size: 13.5px; }
.data-screen-controls .btn[hidden] { display: none; }
.data-screen-viewport {
  display: flex;
  flex-direction: column;
  min-height: 580px;
  background: #fff;
}
.data-screen-graph-title {
  flex: none;
  padding: 18px 24px 0;
}
.data-screen-graph-title[hidden] { display: none; }
.data-screen-graph-title-main {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}
.data-screen-graph-title-sub {
  display: block;
  font-size: 13px;
  color: var(--grey);
  margin-top: 2px;
}
.data-screen-graph-title-key {
  font-size: 16.5px;
  font-weight: 400;
  color: var(--ink);
  margin-left: 5px;
}
.data-screen-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}
.data-screen-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.data-screen-frame[hidden] { display: none; }
.data-screen-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--grey);
  text-align: center;
  padding: 30px;
}
.data-screen-placeholder p { max-width: 300px; font-size: 14.5px; margin: 0; color: var(--grey); }
.data-screen-placeholder[hidden] { display: none; }
@media (max-width: 800px) {
  .data-screen { grid-template-columns: 1fr; }
  .data-screen-controls { border-right: none; border-bottom: 1px solid var(--line); }
  .data-screen-viewport { min-height: 420px; }
}

/* Topic research modal (Our Work page) */
.topic-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.topic-modal[hidden] { display: none; }
.topic-modal-backdrop { position: absolute; inset: 0; background: rgba(26, 54, 93, 0.6); }
.topic-modal-panel {
  position: relative;
  background-color: #fff;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  border-radius: 12px;
  border-top: 4px solid var(--crimson);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 52px 56px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.topic-modal-panel h3 { font-size: 28px; margin-bottom: 12px; }
.topic-modal-panel > p { font-size: 16.5px; color: var(--grey); margin-bottom: 30px; }
@media (max-width: 620px) {
  .topic-modal-panel { padding: 32px 24px; }
}
.topic-modal-list { margin-bottom: 20px; }
.topic-modal-list:last-child { margin-bottom: 0; }
.topic-modal-list h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); margin-bottom: 10px; }

/* Expandable accordion rows inside the topic modal — clicking an item grows
   it and reveals the read-more link, while other rows in the same list
   settle back to their compact state. */
.topic-list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.topic-list-item:last-child { margin-bottom: 0; }
.topic-list-item.expanded {
  border-color: var(--crimson);
  box-shadow: 0 6px 18px rgba(26, 54, 93, 0.1);
}
.topic-list-item-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  padding: 15px 18px;
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.18s ease, padding 0.18s ease;
}
.topic-list-item.expanded .topic-list-item-toggle { background: var(--crimson-tint); padding: 18px 18px 16px; }
.topic-list-item-text { display: block; flex: 1; }
.topic-list-item-label {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  transition: font-size 0.18s ease;
}
.topic-list-item.expanded .topic-list-item-label { font-size: 17.5px; }
.topic-list-item-sub {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--crimson);
  margin-top: 3px;
}
.topic-list-item-sub:empty { display: none; }
.topic-list-item-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.topic-list-item-chevron::before { content: '+'; font-size: 14px; line-height: 1; }
.topic-list-item.expanded .topic-list-item-chevron { transform: rotate(45deg); border-color: var(--crimson); color: var(--crimson); }
.topic-list-item-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease;
  background: var(--crimson-tint);
}
.topic-list-item.expanded .topic-list-item-expand { max-height: 64px; }
.topic-list-item-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--crimson);
  padding: 0 18px 18px;
}
.topic-list-item-link:hover { text-decoration: underline; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
}
.card .num-tag {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--crimson);
  border: 1.5px solid var(--crimson);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 0; color: var(--grey); }

.pillar-card { border-top: 4px solid var(--crimson); }

/* Single featured project card */
.project-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--crimson);
  border-radius: 10px;
  padding: 40px 44px;
}
.project-feature .project-date {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson);
  background: var(--crimson-tint);
  padding: 4px 11px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.project-feature h3 { font-size: clamp(19px, 2vw, 24px); margin-bottom: 14px; }
.project-feature p { font-size: 16px; color: var(--charcoal); max-width: 760px; margin-bottom: 22px; }
.project-feature-inner { display: flex; gap: 36px; align-items: center; }
.project-feature-body { flex: 1; min-width: 0; }
.project-feature-media {
  flex-shrink: 0;
  width: 300px;
  height: 210px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.project-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .project-feature-inner { flex-direction: column-reverse; }
  .project-feature-media { width: 100%; height: 220px; }
}

/* Quote / pull-quote block */
.pull-quote {
  border-left: 4px solid var(--crimson);
  padding: 6px 0 6px 26px;
  margin: 34px 0;
}
.pull-quote .quote-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  margin-bottom: 16px;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 8px;
}
.pull-quote cite { font-size: 14px; color: var(--grey); font-style: normal; }

/* Two column layout */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }

/* Home page mission statement: standalone, oversized statement (Gates Foundation-style) */
.mission-standalone {
  background: #fff;
  padding: 150px 0 110px;
  margin-top: 0;
  text-align: center;
}
.mission-standalone .wrap { max-width: 900px; }
.mission-standalone h2 {
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.28;
  max-width: 820px;
  margin: 0 auto 26px;
}
.mission-standalone h2 .highlight, .page-header h1 .highlight { color: var(--ink); }
.mission-standalone h2 .mission-word-navy { color: var(--crimson); }
.mission-standalone h2 .mission-word-blue { color: var(--crimson); }
.mission-standalone h2.mission-headline-long { font-size: clamp(17px, 2vw, 24px); max-width: 920px; white-space: normal; }
.mission-standalone p { margin-bottom: 0; }
.mission-standalone-body { max-width: 760px; margin: 0 auto 34px; text-align: left; }
.mission-standalone-body p {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.mission-standalone-body p:last-child { margin-bottom: 0; }

/* Article detail page (e.g. G7 report) */
.article-wrap { max-width: 760px; }
.article-back {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 24px;
}
.article-hero-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 32px;
  display: block;
}
.article-wrap p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.article-wrap blockquote {
  margin: 0 0 24px;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--crimson);
}
.article-wrap blockquote p {
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 0;
}
.article-wrap .article-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.article-note {
  font-family: var(--sans, inherit);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.6;
  color: var(--gray, #6b7280);
  margin-top: 18px;
}
.article-note a { color: inherit; text-decoration: underline; }
.mission-video {
  position: relative;
  display: block;
  max-width: 640px;
  margin: 8px auto 34px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 50px rgba(26, 54, 93, 0.25);
  cursor: pointer;
}
.mission-video img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.mission-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 54, 93, 0.1) 0%, rgba(26, 54, 93, 0.55) 100%);
}
.mission-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 14px;
  background: #FF0000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}
.mission-video-play svg { width: 24px; height: 24px; margin-left: 3px; }
.mission-video:hover .mission-video-play { transform: translate(-50%, -50%) scale(1.08); background: #CC0000; }
.mission-video-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(26, 54, 93, 0.55);
  padding: 5px 12px;
  border-radius: 20px;
}
.mission-video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
@media (max-width: 760px) {
  .mission-standalone { padding: 90px 0 70px; }
}

/* "What We Bring" advantage pillars (Home) */
/* Our Impact Proposal (Our Work page): photo background with white cards on top */
.impact-section { position: relative; overflow: hidden; }
.impact-section .impact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.impact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 46, 0.82);
  z-index: 1;
}
.impact-section .wrap { position: relative; z-index: 2; }
.impact-section .section-head h2 { color: #fff; }
.impact-section .section-head .eyebrow { color: #90CDF4; }
.impact-section .section-head p { color: #D2E1F0; }

/* "Three pathways to impact" — horizontal step/flow (Our Work page) */
.pathway-flow {
  display: flex;
  align-items: stretch;
  margin-top: 12px;
}
.pathway-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 30px 26px;
}
.pathway-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--crimson);
  background: rgba(49, 130, 206, 0.15);
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pathway-step h3 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.pathway-step p { color: #D2E1F0; font-size: 14.5px; margin-bottom: 0; }
.pathway-arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #90CDF4;
}
.pathway-arrow svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .pathway-flow { flex-direction: column; align-items: stretch; }
  .pathway-arrow { width: 100%; height: 32px; transform: rotate(90deg); }
}

.bring-section { position: relative; overflow: hidden; }
.bring-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 460px;
  height: 460px;
  object-fit: cover;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(to top right, #000 30%, transparent 78%);
          mask-image: linear-gradient(to top right, #000 30%, transparent 78%);
  pointer-events: none;
}
.bring-section .wrap { position: relative; z-index: 1; }
.advantage-grid { margin-top: 8px; }
.advantage-card {
  position: relative;
  border-top: 4px solid var(--crimson);
  padding-top: 32px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.advantage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 54, 93, 0.12);
}
button.advantage-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
button.advantage-card:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
a.advantage-card, a.advantage-card:hover { text-decoration: none; }
a.advantage-card:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }

.advantage-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--crimson);
  margin-top: 14px;
}
.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--crimson-tint);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.advantage-icon svg { width: 26px; height: 26px; }
.advantage-num {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--grey);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.advantage-card h3 { font-size: 19px; margin-bottom: 12px; letter-spacing: 0.01em; }
.advantage-card p { font-size: 14.5px; color: var(--charcoal); margin-bottom: 0; }

/* Featured project + insight frame side-by-side (Home) */
.split-feature { grid-template-columns: 1fr; gap: 32px; }
.feature-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--crimson);
  border-radius: 10px;
  padding: 34px 36px;
  height: 100%;
}
.feature-card-inner { display: flex; gap: 28px; align-items: flex-start; height: 100%; }
.feature-card-image {
  flex-shrink: 0;
  width: 148px;
  height: 148px;
  border-radius: 8px;
  background: var(--crimson-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.feature-card-image img { width: 100%; height: auto; }
.feature-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; }
.feature-card-body .eyebrow { margin-bottom: 6px; }
.feature-card-body h3 { font-size: clamp(18px, 1.8vw, 22px); margin-bottom: 12px; }
.feature-card-body .project-date { align-self: flex-start; margin-bottom: 14px; }
.feature-card p { font-size: 15.5px; }
.feature-card-cta { margin-top: auto; margin-bottom: 0 !important; padding-top: 4px; }

/* Research output cards, stacked (Home featured research) */
.research-stack { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.research-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--crimson);
  border-radius: 10px;
  padding: 20px 22px;
  flex: 1;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.research-card:hover { box-shadow: 0 4px 14px rgba(26, 54, 93, 0.08); transform: translateY(-1px); text-decoration: none; }
.research-card-image {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--crimson-tint);
}
.research-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.research-card-body { min-width: 0; }
.research-card-body .eyebrow { margin-bottom: 4px; }
.research-card-body h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); line-height: 1.3; }
.research-card-cta { font-size: 13px; font-weight: 700; color: var(--crimson); margin: 0 !important; }

/* "What's happening" insight frame (Home) */
.insight-frame {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 10px;
  padding: 32px 34px;
  height: 100%;
  box-shadow: 0 2px 10px rgba(26, 54, 93, 0.05);
  overflow: hidden;
}
.insight-frame-head { margin-bottom: 18px; }
.insight-frame-head .project-date { margin-bottom: 14px; }
.insight-frame-head h2 { font-size: 21px; margin: 0; color: var(--ink); max-width: 760px; }
.insight-frame > p { max-width: 760px; }

/* Insight frame variant with a square side image (e.g. the "Coming Soon"
   project card on the Impact page) — image sits beside the text instead of
   stacked above it. */
.insight-frame-media { flex-direction: row; align-items: center; gap: 26px; }
.insight-frame-img {
  display: block;
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
}
.insight-frame-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.insight-frame-body .insight-frame-head { margin-bottom: 16px; }
.insight-frame-body > p { max-width: 760px; }
@media (max-width: 560px) {
  .insight-frame-media { flex-direction: column; }
  .insight-frame-img { width: 100%; height: 180px; }
  form.notify-form-side { width: 100%; max-width: 100%; margin-top: 6px; }
}
.insight-list {
  overflow-y: auto;
  max-height: 320px;
  padding-right: 10px;
  margin-right: -10px;
  scrollbar-width: thin;
  scrollbar-color: var(--crimson) transparent;
}
.insight-list::-webkit-scrollbar { width: 6px; }
.insight-list::-webkit-scrollbar-track { background: transparent; }
.insight-list::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 3px; }
.insight-scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.insight-scroll-fade {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 0;
  height: 52px;
  background: linear-gradient(to bottom, rgba(247,250,252,0), var(--cream) 82%);
  border-radius: 0 0 9px 9px;
}
.insight-scroll-arrow {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--crimson-tint);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  animation: insight-bounce 1.6s ease-in-out infinite;
}
.insight-scroll-arrow svg { width: 14px; height: 14px; }
@keyframes insight-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.insight-item { padding: 16px 0; border-top: 1px solid var(--line); }
.insight-item:first-child { border-top: none; padding-top: 0; }
.insight-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--crimson);
  background: var(--crimson-tint);
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.insight-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.insight-item h3 a { color: var(--ink); }
.insight-item h3 a:hover { color: var(--crimson); }
.insight-item p { font-size: 13.5px; color: var(--charcoal); margin-bottom: 0; }

/* News / list items */
.item-list { display: flex; flex-direction: column; }
.item-row {
  display: grid;
  grid-template-columns: 88px 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.item-row .thumb {
  width: 88px;
  height: 88px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--crimson-tint);
}
.item-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-row .thumb.thumb-mark { display: flex; align-items: center; justify-content: center; }
.item-row .thumb.thumb-mark svg { width: 40px; height: 40px; }
.item-row .date { color: var(--grey); font-size: 13.5px; padding-top: 3px; }
.item-row .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--crimson);
  background: var(--crimson-tint);
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.item-row h3 { font-size: 18px; margin-bottom: 6px; }
.item-row p { font-size: 14.5px; margin-bottom: 0; }

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.filter-row button {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--charcoal);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.filter-row button.active,
.filter-row button:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  background: var(--crimson-tint);
}

/* People cards */
.people-subhead {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 26px;
}
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; align-items: start; }
.people-grid.cols-3 {
  grid-template-columns: repeat(4, 220px);
  justify-content: center;
}
.faculty-grid { grid-template-columns: repeat(4, 220px); justify-content: center; }
.fellows-grid { grid-template-columns: repeat(4, 220px); justify-content: center; }
@media (max-width: 900px) {
  .faculty-grid { grid-template-columns: repeat(2, 160px); justify-content: center; gap: 20px; }
  .people-grid.cols-3 { grid-template-columns: repeat(2, 160px); max-width: none; gap: 20px; justify-content: center; }
  .fellows-grid { grid-template-columns: repeat(2, 160px); gap: 20px; }
}
.person-card { text-align: center; }
.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--ink) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 14px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; border-radius: 6px; display: block; }
.person-card h4 { font-size: 16px; margin-bottom: 2px; }
.person-card .role { font-size: 13.5px; color: var(--crimson); font-weight: 600; margin-bottom: 8px; }
.person-card .bio { font-size: 13.5px; color: var(--grey); margin: 0; }

/* Portrait-style team cards (Staff, Affiliate Faculty) — rectangular photo, left-aligned
   name/role, small arrow affordance, modeled after opportunityinsights.org/team */
#people .section-head .eyebrow,
.people-panel .section-head .eyebrow,
.underline-eyebrow .eyebrow {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--crimson);
}
.portrait-card { text-align: center; }
.portrait-card .avatar-tile {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  margin: 0 0 16px;
}
.portrait-card .avatar-tile img { object-position: center 18%; border-radius: 4px; }
.portrait-card h4 { font-size: 16px; margin-bottom: 4px; }
.portrait-card .role {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.portrait-card .view-arrow {
  color: var(--crimson);
  font-size: 17px;
  line-height: 1;
  margin: 0 !important;
}
.portrait-card-center { text-align: center; }

/* Fixed-size circular avatars for team grid tiles (Affiliate Faculty, Research Fellows) —
   fixed pixel dimensions guarantee every photo renders at the identical size regardless
   of the source image's native crop or aspect ratio. */
.avatar-tile {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--ink) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }

/* Clickable faculty cards (open bio modal) */
button.faculty-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease;
}
button.faculty-card:hover { transform: translateY(-3px); }
button.faculty-card:hover h4 { color: var(--crimson); }
button.faculty-card .avatar-tile { transition: box-shadow 0.18s ease; }
button.faculty-card:hover .avatar-tile { box-shadow: 0 10px 24px rgba(26, 54, 93, 0.22); }
button.faculty-card h4 { flex-shrink: 0; }
button.faculty-card .role { flex: 1 0 auto; }
.view-bio {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--crimson);
  opacity: 0;
  transition: opacity 0.15s ease;
  margin: 0 !important;
  flex-shrink: 0;
}
button.faculty-card:hover .view-bio,
button.faculty-card:focus-visible .view-bio { opacity: 1; }

/* Bio modal */
.bio-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.bio-modal[hidden] { display: none; }
.bio-modal-backdrop { position: absolute; inset: 0; background: rgba(26, 54, 93, 0.6); }
.bio-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  border-top: 4px solid var(--crimson);
  max-width: 780px;
  width: 100%;
  max-height: 82vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.bio-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--crimson-tint);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.bio-modal-media {
  flex: 0 0 300px;
  align-self: stretch;
  min-height: 320px;
}
.bio-modal-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }
.bio-modal-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 40px;
}
.bio-modal-panel h3 { font-size: 22px; margin-bottom: 6px; }
.bio-modal-panel .role { font-size: 14px; color: var(--crimson); font-weight: 600; margin-bottom: 16px; }
.bio-modal-panel p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .bio-modal-panel { flex-direction: column; max-height: 88vh; }
  .bio-modal-media { flex: 0 0 220px; width: 100%; min-height: 220px; }
  .bio-modal-content { padding: 28px; }
}

/* Director / lead feature */
.lead-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}
.lead-feature .avatar { width: 220px; height: 220px; font-size: 56px; margin-bottom: 0; }
.lead-feature h3 { font-size: clamp(19px, 2vw, 24px); margin-bottom: 4px; }
.lead-feature .role { color: var(--crimson); font-weight: 600; font-size: 15px; margin-bottom: 14px; }

/* CTA band */
.cta-band {
  background: var(--crimson);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(21px, 2.6vw, 28px); }
.cta-band p { color: #DCEBFA; max-width: 600px; margin: 0 auto 26px; }

/* Contact page */
.contact-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}
.contact-card h3 { font-size: 18px; margin-bottom: 16px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); font-weight: 700; margin-top: 16px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 15px; }

form.inquiry-form { display: flex; flex-direction: column; gap: 16px; }
form.inquiry-form label { font-size: 13.5px; font-weight: 700; color: var(--charcoal); margin-bottom: -10px; }
form.inquiry-form input,
form.inquiry-form select,
form.inquiry-form textarea {
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  width: 100%;
}
form.inquiry-form textarea { resize: vertical; min-height: 120px; }
form.inquiry-form button { align-self: flex-start; cursor: pointer; }
form.inquiry-form input[type="file"] { padding: 10px 14px; background: var(--cream); cursor: pointer; }
.field-hint { font-size: 12.5px; color: var(--grey); margin: 6px 0 0; line-height: 1.4; }
.form-status { font-size: 14px; margin: 12px 0 0; min-height: 0; }
.form-status:empty { margin: 0; }
.form-status-success { color: #2f855a; }
.form-status-error { color: #c53030; }
form.notify-form {
  flex-direction: row;
  gap: 10px;
  max-width: 420px;
  margin-top: 22px;
}
form.notify-form input { flex: 1; background: #fff; }
form.notify-form button { padding: 12px 20px; font-size: 14px; white-space: nowrap; }
@media (max-width: 480px) {
  form.notify-form { flex-direction: column; }
  form.notify-form button { align-self: stretch; }
}

/* Side-positioned variant: sits as its own column to the right of the
   insight-frame's text, input stacked above the button. */
form.notify-form-side {
  flex-direction: column;
  flex-shrink: 0;
  width: 200px;
  max-width: 200px;
  margin-top: 0;
  align-self: center;
}
form.notify-form-side button { align-self: stretch; }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0;
  cursor: pointer;
}
.consent-check input[type="checkbox"] { width: auto; margin-top: 3px; flex-shrink: 0; }
.join-team-intro { max-width: 640px; margin-bottom: 28px; color: var(--charcoal); }
.join-team-note { max-width: 640px; margin: 22px 0 0; color: var(--grey); font-size: 14.5px; line-height: 1.6; }
.join-team-note a { font-weight: 600; }

/* Open positions list (join-our-team.html). Empty for now (.positions-empty);
   once real roles exist, add .position-item entries inside .positions-list
   instead — each with a title, sub-line (location/type), and a link. */
.positions-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
.positions-empty { padding: 40px 30px; text-align: center; color: var(--grey); font-size: 15.5px; background: var(--cream); margin: 0; }
.position-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.position-item:last-child { border-bottom: none; }
.position-item h3 { font-size: 17px; margin: 0 0 4px; }
.position-item p { font-size: 13.5px; color: var(--grey); margin: 0; }
.position-item .btn { flex-shrink: 0; }

/* Contact page: form + stay in touch */
.contact-split { align-items: start; }
.contact-social-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
}
.contact-social-card h3 { margin-bottom: 8px; }
.contact-social-card p { color: var(--grey); margin-bottom: 18px; }
.contact-social-links { display: flex; flex-direction: column; gap: 10px; }
.contact-social-links span, .contact-social-links a { font-weight: 600; color: var(--ink); }
.contact-social-links a:hover { color: var(--crimson); }

/* G7 badge */
.g7-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 74px;
  flex-shrink: 0;
  background: var(--crimson-tint);
  border-radius: 8px;
  padding: 10px 14px;
}
.g7-badge img { width: 46px; height: auto; display: block; }
.g7-row { display: flex; align-items: center; gap: 18px; }
.g7-mini { display: inline-flex; vertical-align: -8px; margin-right: 6px; }
.g7-mini img { width: 26px; height: auto; display: block; }
.project-date {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson);
  background: var(--crimson-tint);
  padding: 4px 11px;
  border-radius: 3px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #C7D3E3;
  padding: 56px 0 26px;
  margin-top: 0;
  border-top: 3px solid var(--crimson);
}
.footer-grid-3 { grid-template-columns: 1.4fr 1fr 1fr !important; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-grid h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--sans);
  margin-bottom: 16px;
}
.footer-grid p, .footer-grid a { color: #C7D3E3; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-sub { display: flex; gap: 8px; margin-top: 14px; }
.footer-sub input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13.5px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .social { display: flex; gap: 14px; }

@media (max-width: 900px) {
  .grid-3, .grid-4, .people-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: 1fr; }
  .stat-bar .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .lead-feature { grid-template-columns: 1fr; }
  .lead-feature .avatar { width: 140px; height: 140px; }
  .item-row, .item-row.has-thumb { grid-template-columns: 1fr; gap: 6px; }
  .item-row .thumb { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .grid-4, .people-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
}

