/* =========================================================
   jakob — design tokens
   ========================================================= */
:root {
  --bg:       #fafaf8;   /* off-white paper */
  --bg-2:     #f1efe9;   /* warm stone */
  --ink:      #16161a;   /* near-black */
  --ink-2:    #2e2d2a;
  --mute:     #7d7a72;
  --mute-2:   #b6b1a6;
  --rule:     #e3dfd4;
  --accent:   #b15a3a;   /* muted clay */

  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(96px, 12vw, 180px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* =========================================================
   reset
   ========================================================= */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  color: var(--ink);
  /* layered background: paper grain over topographic contours over warm white.
     edit opacity inside the SVGs in /assets to tune intensity. */
  background-color: var(--bg);
  background-image:
    url('assets/grain.svg'),
    url('assets/topo.svg');
  background-repeat: repeat, repeat;
  background-size: 240px 240px, 1600px 1200px;
  background-position: 0 0, center top;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-transform: lowercase;          /* brand-wide */
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

/* =========================================================
   nav
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), opacity .35s var(--ease);
}
.nav.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.wordmark {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__divider {
  width: 1px; height: 16px;
  background: var(--rule);
  margin: 0 2px;
}
.nav__icon {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--mute);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .35s var(--ease);
}
.nav__icon svg { width: 15px; height: 15px; }
.nav__icon:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.nav__icon::after { display: none; }
.nav__links a {
  font-size: 14px;
  color: var(--mute);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* =========================================================
   reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   hero + map
   ========================================================= */
.hero {
  padding: clamp(120px, 16vw, 200px) var(--gutter) clamp(56px, 7vw, 96px);
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(48px, 7vw, 96px);
}
@media (max-width: 860px) {
  .hero__head { grid-template-columns: 1fr; align-items: start; gap: 32px; }
}

.hero__name {
  font-size: clamp(64px, 13vw, 200px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0;
  color: var(--ink);
}

.hero__tag {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--mute);
  max-width: 36ch;
  margin: 0;
  line-height: 1.45;
}

.hero__stats {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.hero__stats li { display: flex; flex-direction: column; gap: 6px; }
.stat__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
}
.stat__value {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat__link {
  position: relative;
  display: inline-block;
  transition: color .25s var(--ease);
}
.stat__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.stat__link:hover { color: var(--accent); }
.stat__link:hover::after { transform: scaleX(1); }

/* map */
.map {
  margin: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  scroll-margin-top: 32px;
}
#support { scroll-margin-top: 32px; }
#leaflet {
  width: 100%;
  height: clamp(440px, 62vh, 720px);
  background: var(--bg-2);
}
.map__cap {
  position: absolute;
  left: 18px; bottom: 14px;
  z-index: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
  background: rgba(250,250,248,.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

/* leaflet chrome overrides */
.leaflet-container { font-family: var(--sans); background: var(--bg-2); }
.leaflet-control-attribution {
  background: rgba(250,250,248,.85) !important;
  font-size: 10px !important;
  color: var(--mute) !important;
  border-radius: 3px;
}
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-control-zoom a {
  background: var(--bg) !important;
  color: var(--ink) !important;
  border-color: var(--rule) !important;
  font-weight: 300 !important;
  border-radius: 3px !important;
}

/* markers */
.pin-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: transform .3s var(--ease);
}
.pin-dot:hover { transform: scale(1.5); }

.van-marker {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 6px 18px -4px rgba(177,90,58,.55), 0 0 0 6px rgba(177,90,58,.12);
  animation: vanPulse 2.6s var(--ease) infinite;
}
.van-marker svg { width: 20px; height: 20px; color: var(--bg); }
@keyframes vanPulse {
  0%,100% { box-shadow: 0 6px 18px -4px rgba(177,90,58,.55), 0 0 0 6px  rgba(177,90,58,.12); }
  50%     { box-shadow: 0 6px 18px -4px rgba(177,90,58,.55), 0 0 0 14px rgba(177,90,58,0);   }
}

/* popup */
.leaflet-popup-content-wrapper {
  border-radius: 4px !important;
  background: var(--bg) !important;
  box-shadow: 0 20px 50px -20px rgba(22,22,26,.35) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; width: 220px !important; }
.leaflet-popup-tip { background: var(--bg) !important; }
.popup { padding: 16px 18px; }
.popup__eyebrow {
  font-size: 10px; letter-spacing: 0.18em; color: var(--mute); margin: 0 0 6px;
}
.popup__title {
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  margin: 0 0 4px; color: var(--ink); line-height: 1.2;
}
.popup__meta { font-size: 12px; color: var(--mute); margin: 0; }

/* =========================================================
   support
   ========================================================= */
.support {
  background: transparent;
  border-top: 1px solid var(--rule);
  padding: clamp(64px, 8vw, 112px) var(--gutter) clamp(96px, 12vw, 160px);
}
.support__inner { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin: 0 0 24px;
}

.support__head {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 24px;
  max-width: 14ch;
}
.support__lede {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--mute);
  max-width: 52ch;
  margin: 0 0 64px;
  line-height: 1.55;
}

.support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .support__grid { grid-template-columns: 1fr; }
}
.support__card {
  position: relative;
  display: block;
  padding: 36px 32px 32px;
  background: rgba(250,250,248,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  border-radius: 18px;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .4s var(--ease);
  min-height: 220px;
}
.support__card:hover {
  background: var(--bg-2);
  border-color: var(--mute-2);
  transform: translateY(-2px);
}
.support__card:hover .support__arrow { transform: translateX(6px); color: var(--accent); }

.support__num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mute-2);
  margin-bottom: 28px;
}
.support__card h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.support__card p {
  font-size: 14px;
  color: var(--mute);
  margin: 0;
  max-width: 28ch;
}
.support__arrow {
  position: absolute;
  right: 28px; bottom: 28px;
  font-size: 18px;
  color: var(--ink);
  transition: transform .4s var(--ease), color .35s var(--ease);
}

/* =========================================================
   footer
   ========================================================= */
.foot {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px var(--gutter);
  font-size: 12px;
  color: var(--mute);
  background: var(--bg);
  border-top: 1px solid var(--rule);
  letter-spacing: 0.02em;
  gap: 24px;
  flex-wrap: wrap;
}
.foot a:hover { color: var(--ink); }
.foot__mid { color: var(--mute-2); }
@media (max-width: 600px) {
  .foot__mid { display: none; }
}
