/* volunteering.css
 * Chapter-based volunteering page, ported from the DesignCombo prototype
 * ("Volunteering Page Redesign") into native HTML/CSS/JS. Full-viewport
 * scroll chapters with a fixed progress bar + dot nav (desktop), a read-more
 * expand per chapter, and an "All memberships" closing grid.
 *
 * All behaviour is progressive enhancement: without JS every chapter and its
 * expanded copy still render in normal document flow (see .no-js fallback in
 * volunteering.js). Prefixed .vp-* to stay isolated from the shared styles.
 */

/* Gentle full-page snap between chapters (proximity, not mandatory, so the
 * shared header and footer stay easy to reach). Only loaded on this page. */
html {
  scroll-snap-type: y proximity;
}

/* ── Fixed chrome: progress bar + dot nav ─────────────────────────────────── */
.vp-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #000;
  z-index: 200;
  transition: width 0.3s ease;
}

.vp-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vp-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  flex-shrink: 0;
  display: block;
  transition: all 0.2s ease;
}

.vp-dot.is-active {
  width: 10px;
  height: 10px;
  background: #000;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.vp-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
}

.vp-hero-title {
  font-family: "Inter Tight", sans-serif;
  font-size: 88px;
  font-weight: 500;
  line-height: 100%;
  color: rgba(0, 0, 0, 0.87);
  margin: 0 0 24px;
}

.vp-hero-lead {
  font-family: "Inter Tight", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.5);
  max-width: 52ch;
  margin: 0 0 32px;
}

.vp-hero .page-actions {
  margin: 0 0 32px;
}

.vp-scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(0, 0, 0, 0.28);
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ── Chapter ──────────────────────────────────────────────────────────────── */
.vp-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
}

.vp-chapter-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.vp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vp-year {
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

.vp-role {
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid rgba(0, 0, 0, 0.17);
  border-radius: 100px;
  color: rgba(0, 0, 0, 0.5);
}

.vp-org {
  font-family: "Inter Tight", sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 108%;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.87);
  margin: 0;
}

.vp-short {
  font-family: "Inter Tight", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
  max-width: 48ch;
}

.vp-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Inter Tight", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.22);
}

.vp-toggle-arrow {
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.vp-toggle[aria-expanded="true"] .vp-toggle-arrow {
  transform: rotate(90deg);
}

.vp-extra {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: vpFadeUp 0.28s ease;
}

.vp-extra[hidden] {
  display: none;
}

.vp-extra-text {
  font-family: "Inter Tight", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
  max-width: 48ch;
}

.vp-projects {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vp-projects-label {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.32);
}

.vp-project {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vp-project-name {
  font-family: "Inter Tight", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
}

.vp-project-desc {
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.5);
}

.vp-media {
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: repeating-linear-gradient(
    -45deg,
    #ebebeb 0,
    #ebebeb 5px,
    #f5f5f5 5px,
    #f5f5f5 16px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-media-label {
  font-family: monospace;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.2);
  text-align: center;
  line-height: 1.7;
}

.vp-counter {
  position: absolute;
  bottom: 28px;
  left: 80px;
  right: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.22);
}

.vp-counter-num {
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ── Closing: all memberships ─────────────────────────────────────────────── */
.vp-footer {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.vp-footer-eyebrow {
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin: 0 0 20px;
}

.vp-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  max-width: 900px;
  margin-bottom: 48px;
}

.vp-member {
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.vp-member-name {
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 3px;
}

.vp-member-since {
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
}

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

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {
  .vp-dots {
    display: none;
  }

  .vp-hero,
  .vp-chapter,
  .vp-footer {
    padding: 48px 24px 72px;
  }

  .vp-hero-title {
    font-size: 52px;
  }

  .vp-chapter {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .vp-org {
    font-size: 28px;
  }

  .vp-media {
    order: -1;
    height: 220px;
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .vp-counter {
    display: none;
  }

  .vp-member-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .vp-progress,
  .vp-toggle-arrow,
  .vp-extra {
    transition: none;
    animation: none;
  }
}
