* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #0a0a0a;
  font-family: 'Inter', -apple-system, Helvetica, Arial, sans-serif;
}
::selection { background: rgba(20,20,20,.12); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */
#nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 76px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}
.logo { font-size: 16px; font-weight: 600; letter-spacing: 0.3em; }
#nav .links { display: flex; gap: 2.6rem; }
#nav .links a { font-size: 14px; color: #333; position: relative; padding-bottom: 4px; }
#nav .links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: #0a0a0a;
  transition: right .25s ease;
}
#nav .links a:hover::after,
#nav .links a.active::after { right: 0; }
#nav .inquire { font-size: 14px; border: 1px solid #0a0a0a; padding: 0.5rem 1.3rem; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
#nav .inquire:hover { background: #0a0a0a; color: #fff; }
@media (max-width: 760px) { #nav .links { display: none; } #nav { padding: 0 1.4rem; } }

/* Adaptive nav: goes dark over full-bleed photo sections */
#nav { transition: background .35s ease, border-color .35s ease; }
#nav.nav-dark { background: rgba(10,10,10,.4); backdrop-filter: blur(8px); border-bottom-color: rgba(255,255,255,.12); }
#nav.nav-dark .logo, #nav.nav-dark .links a { color: #fff; }
#nav.nav-dark .links a::after { background: #fff; }
#nav.nav-dark .inquire { border-color: rgba(255,255,255,.7); color: #fff; }
#nav.nav-dark .inquire:hover { background: #fff; color: #0a0a0a; }

/* ---------- Floating badge ---------- */
.badge-float {
  position: absolute;
  padding: .65rem 1.2rem;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  animation: float-badge 5.5s ease-in-out infinite;
}
@keyframes float-badge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sticky scrolling steps ---------- */
.steps-section { padding: 3rem 2.5rem 2rem; }
.steps-wrap { display: flex; gap: 4.5rem; max-width: 1200px; margin: 0 auto; }
.steps-list { flex: 1; min-width: 0; }
.step { min-height: 62vh; display: flex; align-items: center; }
.step .step-inner { opacity: .28; transition: opacity .5s ease; }
.step.active .step-inner { opacity: 1; }
.step-num { font-size: 13px; font-weight: 600; color: #999; margin-bottom: .7rem; }
.step h3 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 500; margin: 0 0 .9rem; letter-spacing: -0.01em; }
.step p { font-size: 1.02rem; color: #555; max-width: 42ch; line-height: 1.65; margin: 0; }
.steps-sticky {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: 96px;
  align-self: flex-start;
  height: 66vh;
  border-radius: 14px;
  overflow: hidden;
}
.steps-sticky .step-img { position: absolute; inset: -10%; background-size: cover; background-position: center; opacity: 0; transition: opacity .7s ease; }
.steps-sticky .step-img.active { opacity: 1; }
@media (max-width: 900px) {
  .steps-wrap { flex-direction: column; gap: 0; }
  .steps-sticky { display: none; }
  .step { min-height: auto; padding: 2.4rem 0; }
  .step .step-inner { opacity: 1; }
  .step .step-thumb { width: 100%; aspect-ratio: 16/10; border-radius: 10px; background-size: cover; background-position: center; margin-bottom: 1.2rem; }
}
@media (min-width: 901px) { .step-thumb { display: none; } }

/* ---------- Marquee ---------- */
.marquee-section { padding: 2rem 0 5rem; }
.marquee-head { padding: 0 2.5rem; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.marquee-wrap { position: relative; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee-scroll 46s linear infinite; padding: 0 2.5rem; }
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-item { width: 240px; height: 320px; border-radius: 10px; overflow: hidden; position: relative; flex: none; background-size: cover; background-position: center; }
.marquee-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.5) 100%); }
.marquee-item span { position: absolute; left: .9rem; bottom: .8rem; color: #fff; font-size: 13.5px; font-weight: 600; z-index: 1; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-toggle {
  position: absolute;
  right: 2.5rem;
  bottom: -3.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marquee-toggle:hover { border-color: #0a0a0a; }
@media (max-width: 760px) { .marquee-item { width: 180px; height: 240px; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1.in-view { transition-delay: .08s; }
.reveal-2.in-view { transition-delay: .18s; }
.reveal-3.in-view { transition-delay: .28s; }
.reveal-4.in-view { transition-delay: .38s; }

/* ---------- Ken Burns ---------- */
@keyframes kenburns {
  0%   { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}
.kb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 18s ease-in-out infinite alternate;
}

/* ---------- Manifesto blocks ---------- */
.manifesto { padding: 6.5rem 2rem 2rem; max-width: 720px; margin: 0 auto; }
.manifesto .mark { width: 12px; height: 12px; background: #0a0a0a; margin-bottom: 1.5rem; }
.manifesto p {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}
.manifesto .label { font-size: 13px; font-weight: 600; margin-bottom: 0.8rem; letter-spacing: .02em; }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.7rem;
  letter-spacing: .02em;
}

/* ---------- Big link cards (home: Causes / Faiths) ---------- */
.big-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #eee; margin-top: 3rem; }
.big-card { position: relative; aspect-ratio: 4/5; overflow: hidden; display: block; }
.big-card .kb { transition: transform .6s ease; }
.big-card:hover .kb { animation-play-state: paused; transform: scale(1.06); }
.big-card .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%); }
.big-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem; color: #fff; }
.big-card .cap .big { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; margin-bottom: .4rem; }
.big-card .cap .arrow { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: .4rem; }
.big-card .cap .arrow span { display: inline-block; transition: transform .25s ease; }
.big-card:hover .cap .arrow span { transform: translateX(6px); }
@media (max-width: 760px) { .big-cards { grid-template-columns: 1fr; } }

/* ---------- Join ---------- */
#join { padding: 7rem 2rem 8rem; text-align: center; }
#join h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 400; margin: 0 0 1rem; }
#join p { font-size: 16px; color: #555; margin: 0 0 2rem; }
.btn-dark {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 600;
  padding: 1.05rem 2.6rem;
  background: #0a0a0a;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.btn-dark:hover { opacity: .85; transform: translateY(-2px); }

footer {
  border-top: 1px solid #eee;
  padding: 2.4rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #888;
}

/* ---------- Modal ---------- */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, background .3s ease;
  z-index: 50;
}
#card {
  width: 90%;
  max-width: 380px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  border-radius: 10px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  transform: scale(.96) translateY(8px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  position: relative;
}
#closeBtn { position: absolute; top: 0.9rem; right: 1rem; opacity: .5; cursor: pointer; font-size: 1.1rem; }
.card-wordmark { font-size: 14px; font-weight: 600; letter-spacing: 0.2em; margin-bottom: 1.2rem; }
#formFields p { font-size: 13.5px; color: #555; line-height: 1.6; margin-bottom: 1.3rem; }
#formFields input {
  width: 100%;
  margin-bottom: 0.7rem;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 14px;
  padding: 0.65rem 0.8rem;
  outline: none;
}
#formFields input:focus { border-color: #0a0a0a; }
#formFields input:last-of-type { margin-bottom: 1.4rem; }
#submitBtn {
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  display: inline-block;
  background: #0a0a0a;
  color: #fff;
  padding: 0.7rem 2rem;
  cursor: pointer;
}
#successMsg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  background: #fff;
  border-radius: 10px;
}
#successMsg .icon-wrap { width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
#successMsg .label { font-size: 14px; font-weight: 600; }
