/* ------------------------------------------------ sections */
section.block {
  padding: 96px 0;
}
@media (min-width: 768px) {
  section.block {
    padding: 144px 0;
  }
}

/* landing page — tighter vertical rhythm between sections */
.home section.block {
  padding: 56px 0;
}
@media (min-width: 768px) {
  .home section.block {
    padding: 80px 0;
  }
}

.eyebrow {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  margin-bottom: 56px;
  color: var(--grey);
  letter-spacing: 0.2em;
}
@media (min-width: 768px) {
  .eyebrow {
    margin-bottom: 80px;
  }
}

/* =====================================================================
   SECTION SYSTEM — numbered chapter kickers, shared by every page.
   Each major section opens with a hairline rule + "01 Label" so readers
   always know which chapter they're in. The rule draws in on reveal.
   ===================================================================== */
.section-kicker {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 18px;
  margin-bottom: 40px;
  color: var(--txt-dim);
}
@media (min-width: 768px) {
  .section-kicker {
    margin-bottom: 56px;
  }
}
.section-kicker::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.section-kicker .k-num {
  color: var(--signal);
}
/* the rule draws in from the left as the kicker reveals */
@media (prefers-reduced-motion: no-preference) {
  .js .section-kicker::before {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
  }
  .js .section-kicker.is-visible::before,
  .js .is-visible .section-kicker::before {
    transform: scaleX(1);
  }
}
/* subpage flows where chapters share one wrap (e.g. volunteering):
   a kicker marks each new chapter, so it carries the separation */
.subpage-body > .section-kicker:not(:first-child) {
  margin-top: 88px;
}
@media (min-width: 768px) {
  .subpage-body > .section-kicker:not(:first-child) {
    margin-top: 120px;
  }
}
/* anchored sections land clear of the fixed nav */
[id] {
  scroll-margin-top: 96px;
}

.cols {
  display: grid;
  gap: 48px;
}
@media (min-width: 768px) {
  .cols {
    grid-template-columns: 7fr 1fr 4fr;
    gap: 32px;
  }
}

h2.statement {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.cols p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* events */
.events-intro {
  max-width: 36rem;
  font-size: 18px;
  color: var(--ink-soft);
}
/* landing page — intro sits under the section heading */
.home .events-intro {
  margin-top: 20px;
  max-width: 40rem;
}
.col-lead {
  margin-top: 22px;
  margin-bottom: 0;
  max-width: 40rem;
}
/* builders §01 — section lead above the cards: wider measure + breathing room */
.builders-lead {
  max-width: 46rem;
  font-size: 18px;
  line-height: 1.62;
  margin-bottom: 48px;
}
.event-list {
  margin-top: 56px;
  border-top: 1px solid var(--hairline);
}
.home .event-list {
  margin-top: 48px;
}
.event {
  display: grid;
  gap: 20px;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 768px) {
  .event {
    grid-template-columns: 2fr 7fr 3fr;
    gap: 32px;
  }
}
.event .idx {
  color: var(--grey);
}
.event h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.035em;
}
.event .desc {
  margin-top: 16px;
  max-width: 36rem;
  color: var(--ink-soft);
}
.event .partners {
  margin-top: 16px;
  color: var(--grey);
  font-size: 11px;
}
.event .side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .event .side {
    align-items: flex-end;
    text-align: right;
  }
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey);
}
.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hairline);
}
.status .dot.up {
  background: var(--signal);
}

/* home events — draggable card carousel
   A horizontal rail of cards you drag left/right (mouse) or swipe (touch).
   Cards bleed to the viewport edge on the right so the rail reads as
   "there's more", echoing the ledger cards elsewhere on the site. */
/* contain the full-bleed rail so it can never add a page scrollbar */
#events {
  overflow-x: clip;
}
.evc {
  position: relative;
  /* track padding (below) reserves room for the hover lift/shadow, so trim
     the top margin by the same amount to keep the 48px rhythm */
  margin-top: 36px;
  /* full-bleed: break out of the wrap to the screen edges so cards can
     scroll past the wrap borders all the way to the edge of the screen */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.evc-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  /* no scroll-snap: it would nudge the initial position off the exact end,
     so the newest card wouldn't sit flush against the screen edge on load */
  /* overflow-x:auto also clips overflow-y, so pad the track to give the
     hover lift (-4px) and drop shadow somewhere to render un-cropped */
  padding-top: 12px;
  padding-bottom: 22px;
  /* Line the first/last card up with the content above (heading + rule
     lines) at each scroll extreme. This matches .wrap's inset — its side
     padding plus the centering margin once the 1180px max-width kicks in —
     so the alignment holds on wide screens; cards still bleed to the screen
     edges while scrolling in between. */
  padding-inline: calc(max(0px, (100vw - 1180px) / 2) + 24px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
@media (min-width: 768px) {
  .evc-track {
    padding-inline: calc(max(0px, (100vw - 1180px) / 2) + 40px);
  }
}
.evc-track::-webkit-scrollbar {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .evc-track {
    cursor: grab;
  }
  .evc-track.is-dragging {
    cursor: grabbing;
  }
  /* suppress link/hover reactions mid-drag so a drag never fires a click */
  .evc-track.is-dragging * {
    pointer-events: none;
  }
}
.evc-card {
  position: relative;
  flex: 0 0 auto;
  width: min(360px, 82vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s,
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .evc-track:not(.is-dragging) .evc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.42);
  }
}
.evc-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #26262a, #17171a);
}
/* graceful placeholder when a card photo is missing: fill the media area
   with its dark gradient and a subtle centered caption, not a bordered pill */
.evc-media .media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.evc-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the image from being "grabbed" as a native drag ghost */
  -webkit-user-drag: none;
  user-select: none;
}
/* placeholder tile: big ghosted index number on a tinted panel */
.evc-media--ph {
  position: relative;
  display: grid;
  place-items: center;
}
.evc-media--ph::before {
  content: attr(data-ph);
  font-family: var(--display);
  font-weight: 700;
  font-size: 4.5rem;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.08);
}
.evc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 24px;
}
.evc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--txt-dim);
  font-size: 11px;
}
/* event number: lifted out of the meta row into the card's top-left corner,
   sat over the photo with a legible frosted backdrop */
.evc-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  background: rgba(10, 10, 12, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.08em;
}
.evc-card h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--txt);
}
.evc-card .desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--txt-soft);
}
.evc-card .partners {
  margin-top: auto;
  padding-top: 18px;
  color: var(--txt-dim);
  font-size: 11px;
}
.evc-hint {
  margin-top: 4px;
  text-align: center;
  color: var(--txt-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-quiet {
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.link-quiet:hover {
  text-decoration-color: currentColor;
}
a.cal {
  display: inline-block;
  margin-top: 40px;
}

/* community */
.roles {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}
.roles li {
  border: 1px solid var(--hairline);
  padding: 8px 16px;
  color: var(--grey);
}

/* join (dark) */
.dark {
  background: var(--ink);
  color: var(--paper);
}
.dark .eyebrow {
  border-color: var(--hairline-dark);
  color: rgba(244, 244, 242, 0.5);
}
.dark h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.dark .body {
  margin-top: 32px;
  max-width: 28rem;
  color: rgba(244, 244, 242, 0.65);
}
.dark .ctas {
  margin-top: 40px;
}
.contacts {
  margin-top: 64px;
  display: grid;
  gap: 1px;
  list-style: none;
  border: 1px solid var(--hairline-dark);
  background: var(--hairline-dark);
}
@media (min-width: 768px) {
  .contacts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.contacts a {
  display: block;
  background: var(--ink);
  padding: 24px;
  text-decoration: none;
  transition: background 0.2s;
}
.contacts a:hover {
  background: var(--ink-soft);
}
.contacts .label {
  color: rgba(244, 244, 242, 0.45);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contacts .value {
  display: block;
  margin-top: 8px;
  font-weight: 500;
  font-size: 14px;
}

/* Instagram contact box: text on the left, white IG icon on the right */
.contacts a.contact-ig {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.contacts a.contact-ig .contact-text {
  display: block;
}
.contacts .contact-ig-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.contacts a.contact-ig:hover .contact-ig-icon {
  opacity: 1;
}

/* ===================================================== footer */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 112px 0 48px;
}
@media (min-width: 768px) {
  footer {
    padding: 144px 0 56px;
  }
}

footer .grid {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 72px;
  display: grid;
  gap: 56px 40px;
}
@media (min-width: 768px) {
  footer .grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 64px 48px;
    padding-top: 88px;
  }
}

footer .lead {
  max-width: 22rem;
}
footer .brand img {
  height: 30px;
  width: auto;
  display: block;
}
footer .tag {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 244, 242, 0.55);
}
footer .place {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.4);
}

footer .col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.4);
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hairline-dark);
}
footer .col ul {
  list-style: none;
}
footer .col li {
  margin-bottom: 14px;
}
footer .col a {
  color: rgba(244, 244, 242, 0.72);
  text-decoration: none;
  font-size: 14px;
  transition:
    color 0.2s,
    padding-left 0.2s;
}
footer .col a:hover {
  color: var(--paper);
  padding-left: 4px;
}

footer .baseline {
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
footer .baseline p {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.38);
}

/* reveal animation — content visible by default; animates only with JS + motion OK */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* word-by-word blur reveal
   JS splits prose text into <span class="wr-w"> words, tags the block .wr,
   then adds .wr-in when it scrolls into view so the words focus in one by
   one. Event cards (.evc) are intentionally excluded. Text is pre-hidden
   under .js so there's no flash before the script runs — the same
   JS-is-trusted tradeoff the .reveal system above already makes. */
@media (prefers-reduced-motion: no-preference) {
  /* pre-hide prose until JS marks it .wr. :where() keeps this at
     .js-only specificity so .wr / .wr-w below win without !important. */
  .js
    :where(main, footer)
    :where(h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption, dt, dd):not(
      :where(.evc *)
    ) {
    opacity: 0;
  }
  .js .wr {
    opacity: 1;
    transform: none;
  }
  .js .wr .wr-w {
    display: inline-block;
    opacity: 0;
    filter: blur(7px);
    transform: translateY(5px);
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js .wr.wr-in .wr-w {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

/* ===================================================== animation */

/* Hero load orchestration.
   The headline and sub-copy now animate through the word-by-word blur
   reveal (see .wr / .wr-w), so they're intentionally left out here — running
   both would race on a cold load (the CSS animation below fires immediately,
   the deferred word-reveal a beat later). Only the meta line, CTAs and the
   backers row keep the staggered "rise" entrance. */
.mask-inner {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .js .nav {
    transform: translateY(-100%);
    animation: navDrop 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
  }

  .js .hero .meta,
  .js .hero .ctas,
  .js .hero .backed {
    opacity: 0;
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .js .hero .meta {
    animation-delay: 0.25s;
  }
  .js .hero .ctas {
    animation-delay: 0.74s;
  }
  .js .hero .backed {
    animation-delay: 0.88s;
  }
}

@keyframes navDrop {
  to {
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Micro-interactions */
.btn {
  transition:
    background 0.2s,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover {
  transform: translateY(-2px);
}

.nav ul a {
  position: relative;
}
.nav ul button::after {
  display: none;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav ul a:hover::after {
  transform: scaleX(1);
}

.event {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.event .idx,
.event h3 {
  transition:
    color 0.3s,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) {
  .event:hover {
    transform: translateX(6px);
  }
}
/* the row's index lights up in the accent, echoing the alumni ledger */
.event:hover .idx {
  color: var(--signal-soft);
}

.roles li {
  transition:
    border-color 0.25s,
    color 0.25s,
    transform 0.25s;
}
.roles li:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

.contacts .value {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.contacts a:hover .value {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .event:hover,
  .roles li:hover,
  .contacts a:hover .value,
  .evc-track:not(.is-dragging) .evc-card:hover {
    transform: none;
  }
}
