/* ============================================
   CIRCol — Design tokens
   ============================================ */
:root {
  --navy:   #0B2E52;
  --ink:    #0A0F17;
  --paper:  #F6F2EA;
  --ember:  #C1502E;
  --frost:  #5B8DBE;
  --mist:   #B9C6D4;
  --text-on-paper: #2B2A26;
  --text-muted-on-paper: #5C5A53;

  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --gradient-thermal: linear-gradient(90deg, var(--frost) 0%, #8E8B6E 50%, var(--ember) 100%);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================
   Scroll progress rail — the thermal gauge
   ============================================ */
.progress-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(11, 46, 82, 0.15);
  z-index: 200;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-thermal);
  transition: width 0.05s linear;
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11, 46, 82, 0.1);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  min-height: 126px;
}
.nav-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 180px;
}
.nav-brand-block {
  position: absolute;
  left: calc(1.5rem + 300px);
  bottom: 14px;
  margin: 0;
  pointer-events: none;
  max-width: calc(100% - 1.5rem - 320px);
}
.nav-org-name {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--ember);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.28;
  color: var(--navy);
  letter-spacing: -0.005em;
}
@media (max-width: 960px) {
  .nav-brand-block { display: none; }
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.75;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }
.nav-cta {
  background: var(--ember);
  color: #fff !important;
  opacity: 1 !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: #a8432a; }
.nav-donate.nav-cta {
  background: transparent;
  color: var(--ember) !important;
  border: 1.5px solid var(--ember);
  padding: 0.4rem 1rem;
  margin-right: 0.5rem;
}
.nav-donate.nav-cta:hover {
  background: var(--ember);
  color: #fff !important;
}

/* Dropdown */
.nav-item--dropdown { position: relative; }
.nav-drop-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.75;
  padding: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-drop-trigger:hover, .nav-drop-trigger:focus-visible { opacity: 1; }
.nav-drop-caret { font-size: 0.65rem; transition: transform 0.2s; }
.nav-item--dropdown.open .nav-drop-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid rgba(11,46,82,0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(11,46,82,0.14);
  padding: 0.5rem;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 50;
}
.nav-item--dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.85;
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown a:hover, .nav-dropdown a:focus-visible {
  opacity: 1;
  background: rgba(11,46,82,0.06);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ============================================
   Layout helpers
   ============================================ */
.section { padding: 5.5rem 1.5rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--ink { background: var(--ink); color: var(--paper); }

.divider {
  height: 6px;
  background: var(--gradient-thermal);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 0.9rem;
}
.eyebrow--light { color: #E8B49A; }

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  max-width: 42ch;
  margin-bottom: 1rem;
}
.section-title--light { color: #fff; }

.section-lede {
  font-size: 1.12rem;
  color: var(--text-muted-on-paper);
  max-width: 62ch;
  margin-bottom: 2.8rem;
}
.section-lede--light { color: var(--mist); }

/* ============================================
   Hero
   ============================================ */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-title {
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.hero-tagline {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: #F0B090;
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.35;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--mist);
  max-width: 58ch;
  margin: 0 auto 2.3rem;
}
@media (max-width: 800px) {
  .hero-title { white-space: normal; }
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--ember { background: var(--ember); color: #fff; }
.btn--ember:hover { background: #a8432a; }
.btn--ghost { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; }

.hero-stats {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat {
  padding: 2.2rem 1.5rem 2.6rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  text-align: left;
}
.stat:first-child { border-left: none; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.92rem;
  color: var(--mist);
  max-width: 32ch;
  display: block;
}
.crisis-stats {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(11,46,82,0.15);
}
.crisis-stats .stat { border-left-color: rgba(11,46,82,0.15); }
.crisis-stats .stat-num { color: var(--navy); }
.crisis-stats .stat-label { color: var(--text-muted-on-paper, #5a5952); }
@media (max-width: 720px) {
  .crisis-stats { grid-template-columns: 1fr; }
  .crisis-stats .stat { border-left: none; border-top: 1px solid rgba(11,46,82,0.12); }
  .crisis-stats .stat:first-child { border-top: none; }
}
.stat-num--light { color: #fff; }
.stat-label--light { color: var(--mist); }
.stat--dark .stat-num { color: #fff; }
.stat--dark .stat-label { color: var(--mist); }
.thermal-note.thermal-note--light { color: var(--paper); border-top-color: rgba(255,255,255,0.25); font-weight: 500; }
.thermal-note.thermal-note--light a { color: #F0B090; border-bottom-color: rgba(240, 176, 144, 0.5); }

/* Blue color for the Climate and Incarceration section paragraphs */
#crisis .section-lede { color: var(--navy); }
#crisis .section-lede a { color: var(--ember); }

/* Footnote superscripts inline */
sup.fn {
  font-family: var(--font-mono);
  font-size: 0.7em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
}
sup.fn a {
  color: #F0B090;
  text-decoration: none;
  border-bottom: none;
}
sup.fn a:hover { text-decoration: underline; }
.section--paper sup.fn a { color: var(--ember); }

/* References list at bottom of Thermal Justice */
.thermal-refs {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.thermal-affiliates {
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.thermal-refs-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #F0B090;
  margin: 0 0 0.9rem;
}
.thermal-refs-list {
  color: var(--paper);
  font-size: 0.82rem;
  line-height: 1.5;
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}
.thermal-refs-list li {
  margin-bottom: 0.55rem;
  scroll-margin-top: 320px;
}
.thermal-refs-list li:target {
  background: rgba(240, 176, 144, 0.14);
  outline: 1px solid rgba(240, 176, 144, 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}
.thermal-refs-note {
  font-size: 0.78rem;
  color: var(--mist);
  font-style: italic;
  margin: 0;
}
.thermal-refs-note a {
  color: #F0B090;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 176, 144, 0.4);
}

/* Expanded Thermal Justice: subheads + body */
.thermal-subhead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #F0B090;
  margin: 2.2rem 0 0.6rem;
  letter-spacing: -0.005em;
}
.thermal-body {
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

/* Issue summary + citation block */
.issue-summary {
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(11,46,82,0.15);
  max-width: 68ch;
}
.issue-summary p {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.issue-citation {
  font-size: 0.88rem !important;
  color: var(--text-muted-on-paper, #5a5952) !important;
  font-style: italic;
  padding-top: 0.4rem;
}
.issue-citation a {
  color: var(--ember);
  font-style: normal;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(193, 80, 46, 0.35);
}
.issue-citation a:hover { border-bottom-color: var(--ember); }
.issue-citation a em { font-style: italic; }

/* ============================================
   Crisis section
   ============================================ */
.crisis-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.crisis-prose p {
  font-size: 1.02rem;
  color: var(--text-on-paper);
}
.crisis-source {
  font-size: 0.85rem;
  color: var(--text-muted-on-paper);
  font-style: italic;
}
.convergence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.convergence-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.convergence-list h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.convergence-list p {
  font-size: 0.95rem;
  color: var(--text-muted-on-paper);
  margin: 0;
}
.tick {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.tick--ember { background: var(--ember); }
.tick--mid { background: #8E8B6E; }
.tick--frost { background: var(--frost); }

/* ============================================
   Pillars
   ============================================ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pillar-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 1.8rem 1.5rem;
}
.pillar-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #E8B49A;
  font-weight: 600;
}
.pillar-card h3 {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0.7rem 0 0.6rem;
  line-height: 1.3;
}
.pillar-card p {
  color: var(--mist);
  font-size: 0.9rem;
  margin: 0;
}

/* Paper (light) background variants */
.section--paper .pillar-card {
  background: #FFFDF8;
  border-color: rgba(11,46,82,0.14);
}
.section--paper .pillar-index { color: var(--ember); }
.section--paper .pillar-card h3 { color: var(--navy); }
.section--paper .pillar-card p { color: var(--text-on-paper); }
.pillars-footnote {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(11,46,82,0.12);
  font-style: italic;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid rgba(255,255,255,0.15);
}
.timeline li {
  position: relative;
  padding: 0 0 2.2rem 2rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -6.5px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ember);
  border: 2px solid var(--ink);
}
.timeline-year {
  font-family: var(--font-mono);
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  margin-right: 0.9rem;
}
.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--frost);
  font-weight: 600;
}
.timeline li p {
  color: var(--mist);
  margin: 0.5rem 0 0;
  max-width: 60ch;
}

/* Paper (light) background variants for timeline */
.section--paper .timeline { border-left-color: rgba(11,46,82,0.18); }
.section--paper .timeline li::before { border-color: var(--paper); background: var(--ember); }
.section--paper .timeline-year { color: var(--ember); }
.section--paper .timeline-tag { color: var(--frost); }
.section--paper .timeline li p { color: var(--navy); }
.section--paper .timeline li p a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(193, 80, 46, 0.35);
}
.section--paper .timeline li p a:hover { border-bottom-color: var(--ember); }

/* Timeline entries with a photo */
.timeline-item--with-photo .timeline-content {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin-top: 0.6rem;
}
.timeline-photo {
  width: 320px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  display: block;
}
.timeline-item--with-photo p {
  margin: 0 !important;
  flex: 1;
  min-width: 0;
}
@media (max-width: 720px) {
  .timeline-item--with-photo .timeline-content { flex-direction: column; }
  .timeline-photo { width: 100%; max-width: 480px; }
}
/* ============================================
   Partners
   ============================================ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.partner-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.8rem;
  box-shadow: 0 1px 3px rgba(11,46,82,0.07);
}
.partner-mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid rgba(11,46,82,0.15);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.9rem;
}
.partner-photo {
  display: block;
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.partner-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0.9rem;
}
.partner-header h3 {
  margin: 0;
}
.partner-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.partner-name-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s;
}
.partner-name-link:hover, .partner-name-link:focus-visible {
  border-bottom-color: var(--ember);
}
.partner-card p {
  font-size: 0.92rem;
  color: var(--text-muted-on-paper);
  margin: 0;
}

/* ============================================
   Get involved
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 1.8rem;
}
.contact-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.contact-role {
  color: var(--mist);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.contact-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #E8B49A;
  text-decoration: none;
  border-bottom: 1px solid rgba(232,180,154,0.4);
}
.contact-link:hover { border-color: #E8B49A; }

.involved-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.involved-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: 1.5px solid var(--ember);
  padding-bottom: 2px;
}

/* Get Involved CTA + signup form */
.involved-cta-row {
  margin: 1.4rem 0 2.6rem;
}
.cta-primary {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: background 0.15s;
}
.cta-primary:hover { background: #A83D1E; }
.signup-block {
  margin-top: 3.5rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 620px;
}
.support-block {
  margin-top: 3.5rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 700px;
}
.support-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
  color: #fff;
}
.support-block p {
  color: var(--paper);
  margin: 0 0 1.4rem;
  font-size: 1rem;
  line-height: 1.55;
}
.support-block strong { color: #F0B090; font-weight: 600; }
.signup-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
}
.signup-block > p {
  color: var(--mist);
  margin: 0 0 1.2rem;
  font-size: 0.98rem;
}
.signup-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.signup-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
}
.signup-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.signup-form button {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 6px;
  background: var(--ember);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.signup-form button:hover { background: #A83D1E; }
.signup-note {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  margin: 0.8rem 0 0;
  font-style: italic;
}
.signup-note code {
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

/* ============================================
   Logo slot
   ============================================ */
.logo-slot {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: absolute;
  top: 0;
  left: 1.5rem;
  z-index: 150;
}
.logo-img {
  display: none;
  height: 126px;
  width: auto;
}

/* ============================================
   Photo slots
   ============================================ */
.photo-slot { position: relative; overflow: hidden; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.92) contrast(1.04); }
.photo-slot::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,46,82,0.12) 0%, rgba(11,46,82,0.28) 100%);
  pointer-events: none;
}
.photo-slot--band {
  max-width: var(--max-width);
  margin: 0 auto;
  aspect-ratio: 3.47 / 1;
  max-height: 340px;
}
.photo-slot--band .photo-placeholder,
.photo-slot--band img { height: 100%; }
.photo-slot--inline {
  aspect-ratio: 1.6 / 1;
  max-height: 460px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.photo-slot--inline .photo-placeholder,
.photo-slot--inline img { height: 100%; }
/* photo-work.jpg is cropped wide (3.47:1), unlike the default inline ratio (1.6:1) */
.photo-slot--work {
  aspect-ratio: 3.47 / 1;
  max-height: 340px;
}
.photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(180deg, rgba(11,46,82,0) 0%, rgba(6,26,47,0.55) 100%);
}
.photo-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: repeating-linear-gradient(
    135deg,
    rgba(11,46,82,0.04),
    rgba(11,46,82,0.04) 10px,
    rgba(11,46,82,0.07) 10px,
    rgba(11,46,82,0.07) 20px
  );
  border: 1.5px dashed rgba(11,46,82,0.25);
  color: var(--text-muted-on-paper);
  font-size: 0.88rem;
  text-align: center;
  padding: 1rem;
}
.photo-placeholder-icon {
  font-size: 1.6rem;
  opacity: 0.4;
}
.photo-placeholder code {
  background: rgba(11,46,82,0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ============================================
   Thermal justice section
   ============================================ */
.thermal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin-bottom: 2.5rem;
}
.stat--paper {
  padding: 0;
  border: none;
  text-align: left;
}
.stat-num--paper { color: var(--navy); }
.stat-label--paper { color: var(--text-muted-on-paper); }
.timeline--paper { border-left-color: rgba(11,46,82,0.15); }
.timeline--paper li::before { border-color: var(--paper); }
.timeline-year--paper { color: var(--navy); }
.timeline-tag--paper { color: var(--ember); }
.timeline--paper li p { color: var(--text-muted-on-paper); }
.thermal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
.thermal-photo {
  margin: 0;
  max-width: 380px;
  justify-self: center;
}
.thermal-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(11,46,82,0.16);
}
.thermal-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--paper);
  text-align: center;
}
.thermal-note {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(11,46,82,0.12);
  font-size: 0.96rem;
  color: var(--text-muted-on-paper);
}
.thermal-note a {
  color: var(--ember);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ember);
}

/* ============================================
   Our Work subsections
   ============================================ */
.work-subhead {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin: 3rem 0 0.6rem;
}
.work-subhead--light { color: #fff; }
.pillar-grid { margin-top: 1.5rem; }
.work-subhead-note {
  color: var(--text-muted-on-paper);
  font-size: 0.96rem;
  max-width: 62ch;
  margin-bottom: 1.6rem;
}
.section--navy .work-subhead-note { color: var(--mist); }
.work-subhead-note a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(193, 80, 46, 0.35);
}
.work-subhead-note a:hover { border-bottom-color: var(--ember); }
.section--navy .work-subhead-note a { color: #F0B090; border-bottom-color: rgba(240, 176, 144, 0.4); }
.section--navy .work-subhead-note a:hover { border-bottom-color: #F0B090; }

.pub-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-left: 3px solid var(--ember);
  border-radius: 8px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1rem;
}
.pub-cite {
  color: #fff;
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   About page
   ============================================ */
.about-hero { padding-bottom: 3.5rem; }
/* If a section is the very first child of main (no carousel above), it hides behind the fixed nav — push it down to clear */
main > .section:first-child { padding-top: calc(126px + 4rem); }
@media (max-width: 960px) { main > .section:first-child { padding-top: calc(72px + 3rem); } }
@media (max-width: 720px) { main > .section:first-child { padding-top: calc(58px + 2rem); } }
.about-title { max-width: 20ch; }
.about-narrow .section-title { margin-bottom: 1.2rem; }
.about-narrow p {
  max-width: 68ch;
  font-size: 1.03rem;
}
.section--paper .about-narrow p { color: var(--text-on-paper); }
.section--navy .about-narrow p { color: var(--paper); }
.nav-current { opacity: 1 !important; border-bottom: 2px solid var(--ember); }

.leadership-disclaimer { max-width: 68ch; }

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1rem;
}
.leader-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.6rem;
  box-shadow: 0 1px 3px rgba(11,46,82,0.07);
  text-align: left;
}
.avatar-slot {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
}
.avatar-slot img { display: none; width: 100%; height: 100%; object-fit: cover; }
.avatar-initials {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.75rem;
  color: #E8B49A;
}
.leader-card h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.leader-name-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s;
}
.leader-name-link:hover, .leader-name-link:focus-visible {
  border-bottom-color: var(--ember);
}
.leader-card--dark .leader-name-link:hover, .leader-card--dark .leader-name-link:focus-visible {
  border-bottom-color: #F0B090;
}
.leader-role {
  font-size: 0.88rem;
  color: var(--text-muted-on-paper);
  margin: 0;
  line-height: 1.5;
}
.leadership-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted-on-paper);
  font-style: italic;
}
.leadership-note code {
  background: rgba(11,46,82,0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-style: normal;
}
.leader-card--dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
}
.leader-card--dark h3 { color: #fff; }
.leader-card--dark .leader-role { color: var(--mist); }
.leader-card--dark .avatar-slot { background: rgba(255,255,255,0.1); }
.leadership-note--dark {
  color: var(--mist);
}
.leadership-note--dark code {
  background: rgba(255,255,255,0.1);
  color: #E8B49A;
}

/* ============================================
   About-page photo carousel
   ============================================ */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 2.96 / 1;
  max-height: 540px;
  overflow: hidden;
  background: var(--ink);
  margin-top: 126px;
}
@media (max-width: 960px) { .carousel { margin-top: 72px; } }
@media (max-width: 720px) { .carousel { margin-top: 58px; } }
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.92) contrast(1.04);
}
.carousel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,46,82,0.15) 0%, rgba(6,26,47,0.4) 100%);
  pointer-events: none;
}
.carousel-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 2;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active { background: #fff; }
@media (max-width: 720px) {
  /* carousel keeps its 1.6:1 ratio on mobile too, matching the pre-cropped source images exactly */
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--mist);
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer .nav-mark { color: #fff; display: block; margin-bottom: 0.8rem; }
.footer p { font-size: 0.88rem; max-width: 60ch; }
.footer-copy { opacity: 0.6; margin-top: 1rem; }

/* ============================================
   Focus visibility
   ============================================ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .crisis-grid { grid-template-columns: 1fr; }
  .thermal-grid { grid-template-columns: 1fr; }
  .thermal-photo { max-width: 320px; margin: 0 auto; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .work-list { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); }
  .stat:first-child { border-top: none; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .thermal-stats { grid-template-columns: 1fr; }
}

/* Intermediate widths (721-960px): keep desktop toolbar visible, but shrink logo and clearance so both fit */
@media (max-width: 960px) {
  .logo-img { height: 72px; }
  .nav-inner { min-height: 72px; }
  .nav-links { margin-left: 100px; gap: 1rem; }
  .nav-links a, .nav-drop-trigger { font-size: 0.95rem; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem 1.8rem;
    gap: 1.1rem;
    border-bottom: 1px solid rgba(11,46,82,0.1);
    display: none;
    margin-left: 0;
  }
  .logo-img { height: 58px; }
  .nav-inner { min-height: 58px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-item--dropdown { width: 100%; }
  .nav-drop-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 0.98rem;
    padding: 0.2rem 0;
  }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0.3rem 0 0 0.9rem;
    min-width: 0;
    display: none;
  }
  .nav-item--dropdown.open .nav-dropdown { display: flex; }
  .nav-dropdown a { padding: 0.4rem 0; font-size: 0.9rem; }
  .pillar-grid { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
  .section { padding: 3.8rem 1.25rem; }
}
