/* ══════════════════════════════════════
   GLOBAL STYLES — edit here, applies everywhere
   ══════════════════════════════════════ */

:root {
  --bg: #faf9f6;
  --text: #111;
  --grey: #777;
  --rule: #111;
  --accent: #b90f3c;
  --font-display: 'Playfair Display', serif;
  --font-body: 'IBM Plex Mono', monospace;
  --max-width: 1100px;
  --side-padding: 48px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}

a:hover {
  color: var(--text);
}


/* ── Centered Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
  padding-top: 40px;
}


/* ── Top Bar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--rule);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.topbar-name a {
  color: var(--text);
  text-decoration: none;
}

.topbar-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-icon {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.topbar-icon:hover {
  opacity: 0.85;
}

.topbar-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.topbar-icon .icon-placeholder {
  width: 100%;
  height: 100%;
  background: #999;
  border-radius: 3px;
}

.topbar-nav {
  display: flex;
  gap: 28px;
}

.topbar-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-nav a:hover {
  color: var(--text);
}

.topbar-nav a.active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}


/* ── Hamburger Menu (hidden on desktop) ── */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font-body);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.menu-icon span {
  display: block;
  height: 1.5px;
  background: var(--text);
  width: 100%;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.topbar.nav-open .topbar-nav {
  display: flex;
}

.topbar.nav-open .menu-icon span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.topbar.nav-open .menu-icon span:nth-child(2) {
  opacity: 0;
}
.topbar.nav-open .menu-icon span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}


/* ── Main ── */
main {
  padding-top: 80px;
}

section {
  padding-top: 48px;
  padding-bottom: 48px;
}


/* ── Hero ── */
.hero .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 0px;
}

.hero-photo {
  width: 280px;
  height: 350px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-text .intro {
  font-size: 15px;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 20px;
}

.hero-text .intro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.hero-text .intro a:hover {
  color: var(--text);
}


/* ── Section Headers ── */
.section-rule {
  border: none;
  border-top: 2px solid var(--rule);
  margin-bottom: 48px;
}

.section-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 40px;
}

.section-label a {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  text-decoration: none;
  margin-left: 12px;
  font-size: 15px;
  transition: color 0.2s;
}

.section-label a:hover {
  color: var(--text);
}


/* ── Research Tiles ── */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.tile-image {
  position: relative;    /* ← add this line */
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 14px;
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile:hover .tile-image img {
  transform: scale(1.04);
}

.tile-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e4dd 0%, #d5d0c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tile-outlet {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg);
  padding: 5px 10px 5px 0;
  z-index: 2;
}

.tile-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.tile:hover .tile-title {
  color: var(--grey);
}


/* ── Page Content (for inner pages) ── */
.page-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 28px;
  line-height: 1.2;
}

.text-block {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: 15px;
}

.text-block p {
  margin-bottom: 16px;
}

.divider {
  width: 40px;
  height: 1px;
  background: rgba(0,0,0,0.15);
  margin: 40px 0;
}

/* ── Item Lists (publications, events, reading) ── */
.item-list {
  list-style: none;
}

.item-list li {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.item-list li:last-child {
  border-bottom: none;
}

.item-title {
  font-weight: 400;
  margin-bottom: 4px;
}

.item-title a {
  color: var(--text);
}

.item-title a:hover {
  color: var(--accent);
}

.item-meta {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.02em;
}

.item-description {
  margin-top: 8px;
  font-size: 15px;
}


/* ── Contact Page ── */
.contact-line {
  margin-bottom: 16px;
}

.contact-label {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin-bottom: 2px;
}

.contact-line a {
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s;
}

.contact-line a:hover {
  border-color: var(--text);
}


/* ── Footer ── */
.site-footer {
  border-top: 1px solid #ddd;
}

.site-footer .container {
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 10.5px;
  color: #bbb;
  letter-spacing: 0.03em;
}


/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --side-padding: 24px;
  }

  .topbar-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--rule);
    padding: 20px var(--side-padding) 24px;
    gap: 12px;
  }

  .topbar-nav a {
    font-size: 12px;
    color: var(--text);
  }

  .menu-toggle {
    display: flex;
  }

  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 80px;
    padding-bottom: 60px;
    gap: 36px;
  }

  .hero-photo { width: 180px; height: 225px; }
  .hero-text h1 { font-size: 36px; }
  .page-heading { font-size: 26px; }
  .tiles { grid-template-columns: 1fr; }
}

.link-box {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  padding: 2px 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.book-section {
  display: grid;
  grid-template-columns: min(800px, 50%) 1fr;
  grid-template-areas: "image text";
  gap: 48px;
  align-items: start;
}

.book-image { grid-area: image; }
.book-text  { grid-area: text; }

.book-image img {
  width: 100%;
  display: block;
}

.book-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.25;
}

.book-text p {
  font-size: 15px;
  line-height: 1.75;
  max-width: 340px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .book-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text";
    gap: 24px;
  }
  .book-title {
    font-size: 22px;
  }
  .book-image {
    max-width: 250px;
  }
}

.book-list {
  font-size: 15px;
  line-height: 1.75;
  max-width: 340px;
  margin-bottom: 16px;
  padding-left: 20px;
}

.book-list li {
  margin-bottom: 8px;
}

.speaking-list {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
  padding-left: 20px;
}

.speaking-list li {
  margin-bottom: 8px;
}

/* ── Speaking Hero (image left, heading + text right) ── */
.speaking-hero {
  display: grid;
  grid-template-columns: min(400px, 40%) 1fr;
  gap: 64px;
  align-items: start;
}

.speaking-hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.speaking-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .speaking-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .speaking-hero-image {
    width: 200px;
  }
}

.research-hero {
  display: grid;
  grid-template-columns: 1fr min(400px, 40%);
  grid-template-areas:
    "heading image"
    "text    image";
  column-gap: 50px;
  row-gap: 0;
  align-items: start;
  margin-bottom: 0px;
}

.research-hero > .page-heading { grid-area: heading; }
.research-hero-text  { grid-area: text; }
.research-hero-image { grid-area: image; }

@media (max-width: 768px) {
  .research-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "image"
      "text";
  }
  .research-hero-image .carousel {
    margin: 0 auto 1.5rem;   /* center carousel, space before the text */
  }
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 619 / 474;   /* set to your images' actual ratio */
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* use 'cover' if you'd rather fill & crop */
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.logo-row img {
  height: 80px;
  width: auto;
  display: block;
}

.logo-marquee {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;   /* tune to taste */
}
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }

.logo-marquee__set {
  display: flex;
  align-items: center;
  gap: 54px;
  padding-right: 54px;   /* must equal gap — makes the loop seamless */
}

.logo-marquee__set img {
  height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.logo-marquee__set img:hover { filter: none; opacity: 1; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .logo-marquee__set { gap: 36px; padding-right: 36px; }
  .logo-marquee__set img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; }
  .logo-marquee__track { animation: none; }
  .logo-marquee__set--dup { display: none; }
}

.protest-map { max-width: 1100px; margin: 0 auto; }

.protest-map__controls {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  margin-bottom: 20px;
}
.protest-map__controls button {
  font: inherit; cursor: pointer; padding: 7px 14px;
  background: transparent; border: 1px solid #d8d6cf; border-radius: 2px;
  color: #1a1a1a; letter-spacing: 0.02em;
  transition: border-color .2s, color .2s, background .2s;
}
.protest-map__controls button:hover { border-color: #c23a22; }
.protest-map__controls button.is-active {
  background: #c23a22; border-color: #c23a22; color: #faf9f6;
}

.protest-map__controls--period { margin-top: -10px; }

#protest-map__svg { width: 100%; height: auto; display: block; }
#protest-map__svg .sphere    { fill: #faf9f6; stroke: #e4e2da; stroke-width: 0.5; }
#protest-map__svg .graticule { fill: none; stroke: #ebe9e2; stroke-width: 0.4; }
#protest-map__svg .country   { fill: #ecebe6; stroke: #dcdad2; stroke-width: 0.5; }

.protest-map__attribution {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: #8a8780; line-height: 1.6; margin-top: 10px;
}
.protest-map__attribution a { color: #8a8780; text-decoration: underline; }

@media (max-width: 768px) {
  .protest-map__controls { gap: 6px; font-size: 12px; }
  .protest-map__controls button { padding: 6px 10px; }
}