/* ───────────────────────────────────────────
   UP — Activities
   Brand: Forest #1A2E1A · Alpine #7ABF7A · Mesa #D4401A · Snowfield #F5F0E8
   Type: Archivo Black (display) · Archivo 400/600/800/900
   Rules: no gradients, no drop shadows on color fields,
          mesa is punctuation (CTAs, rules), never a field.
   ─────────────────────────────────────────── */

:root {
  --forest: #1A2E1A;
  --alpine: #7ABF7A;
  --mesa: #D4401A;
  --snowfield: #F5F0E8;

  --forest-08: rgba(26, 46, 26, 0.08);
  --forest-14: rgba(26, 46, 26, 0.14);
  --forest-22: rgba(26, 46, 26, 0.22);
  --forest-50: rgba(26, 46, 26, 0.50);
  --forest-62: rgba(26, 46, 26, 0.62);
  --forest-80: rgba(26, 46, 26, 0.80);

  --pillar-outdoor: #2B5C2B;
  --pillar-sports:  #1A4A6A;
  --pillar-make:    #8A4F00;
  --pillar-connect: #6E2A56;
  --pillar-learn:   #3B3B62;
  --pillar-serve:   #B53A1F;

  --radius: 6px;
  --radius-lg: 10px;
  --max-w: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--snowfield);
  color: var(--forest);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; }

::selection { background: var(--mesa); color: var(--snowfield); }

/* The [hidden] attribute must beat layout-mode rules like display: grid */
[hidden] { display: none !important; }

/* ─── HEADER ─── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  border-bottom: 1.5px solid var(--forest-14);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--forest);
}
.lockup-up {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-size: 36px;
  letter-spacing: -0.04em;
  line-height: 0.85;
}
.lockup-up.small { font-size: 28px; }
.lockup-rule {
  width: 26px;
  height: 3px;
  background: var(--mesa);
  display: inline-block;
}
.lockup-rule.small { width: 18px; height: 2px; }
.lockup-tag {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 11px;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lockup-tag.small { font-size: 10px; }

.site-nav a {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.site-nav a:hover { border-bottom-color: var(--mesa); }

/* ─── HERO ─── */
.hero {
  padding: clamp(56px, 9vw, 110px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 70px);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1.5px solid var(--forest-14);
}

.hero-eyebrow {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-62);
  margin-bottom: 22px;
}

.hero-h1 {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  font-weight: 900;
}

/* Hero "UP" — echoes the brand mark: capital, mesa fill, snowfield letters reversed */
.hero-up {
  display: inline-block;
  background: var(--mesa);
  color: var(--snowfield);
  padding: 0.02em 0.18em 0.04em;
  margin-left: 0.05em;
  letter-spacing: -0.025em;
  position: relative;
  top: -0.02em;
}
.hero-period {
  color: var(--mesa);
  margin-left: 0.04em;
}

.hero-sub {
  max-width: 620px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
  margin: 0 0 26px;
  color: var(--forest-80);
}

.hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--forest-62);
}
.hero-meta strong { color: var(--forest); font-weight: 900; }

/* ─── PILLAR STRIP ─── */
.pillars {
  display: flex;
  gap: 8px;
  padding: 22px clamp(20px, 4vw, 56px);
  max-width: var(--max-w);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.pillars::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 14px;
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest-22);
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.pill .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-62);
}
.pill .pill-count {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--forest-50);
  margin-left: 2px;
  padding: 2px 7px;
  background: var(--forest-08);
  border-radius: 999px;
}
.pill:hover {
  border-color: var(--forest);
}
.pill.is-active {
  background: var(--forest);
  color: var(--snowfield);
  border-color: var(--forest);
}
.pill.is-active .pill-icon { color: var(--alpine); }
.pill.is-active .pill-count {
  background: rgba(245, 240, 232, 0.15);
  color: var(--snowfield);
}

/* ─── TOOLBAR ─── */
.toolbar {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px clamp(20px, 4vw, 56px) 18px;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--forest-50);
  pointer-events: none;
}
#search {
  width: 100%;
  height: 50px;
  background: var(--snowfield);
  border: 1.5px solid var(--forest-22);
  border-radius: 999px;
  padding: 0 18px 0 42px;
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  outline: none;
  transition: border-color 0.15s;
}
#search:focus { border-color: var(--forest); }
#search::placeholder { color: var(--forest-50); }

.filter-cluster {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.select-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  border: 1.5px solid var(--forest-22);
  border-radius: 999px;
  padding: 5px 14px 5px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
  background: var(--snowfield);
}
.select-wrap:hover { border-color: var(--forest); }
.select-label {
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-50);
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0 18px 0 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--forest);
  outline: none;
  cursor: pointer;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-30%) rotate(45deg);
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  pointer-events: none;
}

.view-toggle {
  display: inline-flex;
  border: 1.5px solid var(--forest-22);
  border-radius: 999px;
  padding: 4px;
  background: var(--snowfield);
  margin-left: auto;
}
.vt-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--forest);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.vt-btn.is-active {
  background: var(--forest);
  color: var(--snowfield);
}

/* ─── RESULTS BAR ─── */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px clamp(20px, 4vw, 56px) 14px;
  max-width: var(--max-w);
  margin: 0 auto;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--forest-62);
}
.results-bar strong { color: var(--forest); font-weight: 900; }

.clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--mesa);
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.clear-btn:hover { background: var(--forest-08); }

/* ─── CARDS ─── */
.cards {
  display: grid;
  gap: 18px;
  padding: 6px clamp(20px, 4vw, 56px) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--snowfield);
  border: 1.5px solid var(--forest-14);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}
.card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}
.card:focus-visible {
  outline: 3px solid var(--mesa);
  outline-offset: 2px;
}

/* The illustration block — solid color per pillar, no gradient */
.card-art {
  position: relative;
  height: 168px;
  background-color: var(--pillar-outdoor);
  background-size: cover;
  background-position: center;
  color: var(--snowfield);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
  isolation: isolate;
}
/* When a photo is loaded: show it cleanly. Solid scrim only at the bottom strip
   so the pillar label stays legible. No full-frame tint. */
.card-art.has-photo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(26, 46, 26, 0.82) 0%, rgba(26, 46, 26, 0) 100%);
  pointer-events: none;
  z-index: 1;
}
.card-art.has-photo .card-pillar { position: relative; z-index: 2; }
.card-art.has-photo .card-cost-badge { z-index: 3; }
.card[data-pillar="Outdoor & Nature"]   .card-art { background: var(--pillar-outdoor); }
.card[data-pillar="Sports & Movement"]  .card-art { background: var(--pillar-sports);  }
.card[data-pillar="Growing & Making"]   .card-art { background: var(--pillar-make);    }
.card[data-pillar="Connection"]         .card-art { background: var(--pillar-connect); }
.card[data-pillar="Learning by Doing"]  .card-art { background: var(--pillar-learn);   }
.card[data-pillar="Altruism & Service"] .card-art { background: var(--pillar-serve);   }

.card-art .art-glyph {
  position: absolute;
  top: -20px;
  right: -16px;
  width: 200px;
  height: 200px;
  opacity: 0.18;
  color: var(--snowfield);
}

.card-pillar {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--snowfield);
  position: relative;
  z-index: 1;
}
.card-pillar::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--mesa);
  vertical-align: middle;
  margin-right: 8px;
  transform: translateY(-2px);
}

.card-cost-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--snowfield);
  color: var(--forest);
  padding: 4px 9px;
  border-radius: 999px;
  z-index: 2;
}
.card-cost-badge.free { background: var(--alpine); color: var(--forest); }
.card-cost-badge.paid { background: var(--snowfield); color: var(--forest); }
.card-cost-badge.donation { background: var(--mesa); color: var(--snowfield); }

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--forest);
}

.card-pitch {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--forest-80);
  margin: 0;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  border-top: 1px solid var(--forest-14);
  padding-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest-62);
}
.card-meta .meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-meta .meta svg {
  color: var(--forest-50);
}

/* ─── MAP ─── */
.map-section {
  padding: 6px clamp(20px, 4vw, 56px) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
#map {
  height: 70vh;
  min-height: 520px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--forest-14);
  overflow: hidden;
}

.leaflet-container {
  background: #DCD7CE;
  font-family: 'Archivo', sans-serif;
}

/* Custom markers */
.up-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--forest);
  border: 3px solid var(--snowfield);
  box-shadow: 0 0 0 1.5px var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.up-marker.outdoor   { background: var(--pillar-outdoor); }
.up-marker.sports    { background: var(--pillar-sports); }
.up-marker.make      { background: var(--pillar-make); }
.up-marker.connect   { background: var(--pillar-connect); }
.up-marker.learn     { background: var(--pillar-learn); }
.up-marker.serve     { background: var(--pillar-serve); }

.leaflet-popup-content-wrapper {
  background: var(--snowfield);
  border-radius: var(--radius);
  border: 1.5px solid var(--forest);
}
.leaflet-popup-tip { background: var(--forest); }
.leaflet-popup-content {
  margin: 14px 16px;
  font-family: 'Archivo', sans-serif;
}
.popup-pillar {
  font-weight: 900;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-62);
  margin-bottom: 6px;
}
.popup-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 17px;
  line-height: 1.1;
  margin: 0 0 8px;
}
.popup-pitch {
  font-size: 13px;
  color: var(--forest-80);
  margin: 0 0 10px;
}
.popup-link {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mesa);
  text-decoration: none;
  cursor: pointer;
}

/* ─── EMPTY STATE ─── */
.empty {
  text-align: center;
  padding: 80px 24px 100px;
  max-width: 520px;
  margin: 0 auto;
}
.empty-mark {
  font-family: 'Archivo Black', sans-serif;
  font-size: 64px;
  color: var(--forest-22);
  line-height: 1;
}
.empty h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  margin: 14px 0 10px;
}
.empty p { color: var(--forest-62); margin: 0 0 20px; }

.btn-mesa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--mesa);
  color: var(--snowfield);
  border: 0;
  border-radius: 4px;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s;
}
.btn-mesa:hover { filter: brightness(1.08); }

/* ─── HERO CTA ROW ─── */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-cta-row .btn-mesa {
  font-size: 14px;
  padding: 14px 24px;
}
.hero-cta-aside {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--forest-62);
}

/* ─── QUIZ ─── */
.quiz-scrim {
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 26, 0.55);
  z-index: 110;
  opacity: 0;
  transition: opacity 0.22s;
}
.quiz-scrim.is-open { opacity: 1; }

.quiz {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(720px, 94vw);
  max-height: min(640px, 92dvh);
  background: var(--snowfield);
  z-index: 120;
  border: 1.5px solid var(--forest);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.quiz.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.quiz-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--snowfield);
  border: 1.5px solid var(--forest-22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.quiz-close:hover { border-color: var(--forest); background: var(--forest); color: var(--snowfield); }

.quiz-progress {
  display: flex;
  gap: 6px;
  padding: 18px 20px 0;
  margin-right: 50px;
}
.qp-step {
  flex: 1;
  height: 4px;
  background: var(--forest-14);
  border-radius: 999px;
  transition: background 0.2s;
}
.qp-step.is-active { background: var(--mesa); }
.qp-step.is-done   { background: var(--forest); }

.quiz-body {
  padding: 30px 36px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.q-eyebrow {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-62);
  margin-bottom: 10px;
}

.q-question {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.q-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
  align-content: start;
}
.q-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.q-options.cols-1 { grid-template-columns: 1fr; }

.q-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--snowfield);
  border: 1.5px solid var(--forest-22);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--forest);
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.q-opt:hover { border-color: var(--forest); transform: translateY(-1px); }
.q-opt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--forest-62);
}
.q-opt-text { flex: 1; }
.q-opt-sub {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--forest-62);
  margin-top: 2px;
}

.q-back {
  background: transparent;
  border: 0;
  color: var(--forest-62);
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 0;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 20px;
}
.q-back:hover { color: var(--mesa); }

/* Quiz results screen */
.q-results-head {
  margin-bottom: 22px;
}
.q-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.q-result {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  background: var(--snowfield);
  border: 1.5px solid var(--forest-14);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: 'Archivo', sans-serif;
  transition: border-color 0.15s, transform 0.1s;
}
.q-result:hover { border-color: var(--forest); transform: translateY(-1px); }
.q-result-art {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  background: var(--pillar-outdoor);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.q-result-body { flex: 1; min-width: 0; }
.q-result-pillar {
  font-weight: 900;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-62);
  margin-bottom: 3px;
}
.q-result-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  line-height: 1.1;
  margin: 0 0 4px;
  color: var(--forest);
}
.q-result-meta {
  font-size: 12.5px;
  color: var(--forest-62);
  font-weight: 600;
}

.q-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.q-actions .btn-mesa { font-size: 12px; padding: 10px 18px; }
.q-actions .btn-ghost {
  background: transparent;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  border-radius: 4px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.q-actions .btn-ghost:hover { background: var(--forest); color: var(--snowfield); }

@media (max-width: 600px) {
  .quiz-body { padding: 24px 22px 28px; }
  .q-options { grid-template-columns: 1fr; }
  .q-options.cols-3 { grid-template-columns: 1fr; }
}

/* ─── DRAWER ─── */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 26, 0.4);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.2s;
}
.drawer-scrim.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(640px, 100vw);
  background: var(--snowfield);
  z-index: 100;
  border-left: 1.5px solid var(--forest);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer.is-open { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: var(--snowfield);
  border: 1.5px solid var(--forest-22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: border-color 0.15s, background 0.15s;
}
.drawer-close:hover { border-color: var(--forest); background: var(--forest); color: var(--snowfield); }

.drawer-body { padding: 0; }

.dr-art {
  height: 220px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: var(--snowfield);
  background-color: var(--pillar-outdoor);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.dr-art.has-photo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(26, 46, 26, 0.78) 0%, rgba(26, 46, 26, 0) 100%);
  pointer-events: none;
  z-index: 1;
}
.dr-art.has-photo .dr-art-pillar { position: relative; z-index: 2; }
.dr-art .art-glyph {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 280px;
  height: 280px;
  opacity: 0.18;
}
.dr-art-pillar {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.dr-art-pillar::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--mesa);
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-3px);
}

.dr-content { padding: 28px 32px 56px; }

.dr-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.dr-pitch {
  font-size: 17px;
  line-height: 1.5;
  color: var(--forest-80);
  margin: 0 0 24px;
  font-weight: 500;
}

.dr-rule {
  height: 3px;
  width: 36px;
  background: var(--mesa);
  margin: 6px 0 22px;
}

.dr-desc {
  font-size: 16px;
  line-height: 1.62;
  color: var(--forest);
  margin: 0 0 28px;
}

.dr-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1.5px solid var(--forest-14);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.dr-stat {
  padding: 14px 16px;
  border-right: 1.5px solid var(--forest-14);
  border-bottom: 1.5px solid var(--forest-14);
}
.dr-stat:nth-child(2n) { border-right: 0; }
.dr-stat:nth-last-child(-n+2) { border-bottom: 0; }
.dr-stat-label {
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-62);
  margin-bottom: 4px;
}
.dr-stat-val {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--forest);
}

.dr-block {
  padding: 18px 0;
  border-top: 1.5px solid var(--forest-14);
}
.dr-block:first-of-type { border-top: 0; padding-top: 0; }
.dr-block h4 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.dr-block p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--forest); }

.dr-tip {
  background: var(--forest);
  color: var(--snowfield);
  padding: 22px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.dr-tip-label {
  font-weight: 900;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--alpine);
  margin-bottom: 8px;
}
.dr-tip p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.dr-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.dr-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  background: var(--snowfield);
  transition: background 0.15s, color 0.15s;
}
.dr-action:hover { background: var(--forest); color: var(--snowfield); }
.dr-action.primary { background: var(--mesa); color: var(--snowfield); border-color: var(--mesa); }
.dr-action.primary:hover { filter: brightness(1.1); background: var(--mesa); }

.dr-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.dr-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--forest-08);
  color: var(--forest-62);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--forest);
  color: var(--snowfield);
  padding: 60px clamp(20px, 4vw, 56px) 50px;
  margin-top: 40px;
}
.foot-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: auto 1fr auto;
  align-items: start;
}
.foot-grid .lockup-up { color: var(--snowfield); }
.foot-grid .lockup-tag { color: var(--snowfield); }
.foot-grid p { margin: 0 0 6px; opacity: 0.78; font-size: 14px; line-height: 1.5; }
.foot-links a {
  color: var(--mesa);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.foot-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.foot-meta { text-align: right; opacity: 0.78; font-size: 12px; letter-spacing: 0.04em; }

/* ─── RESPONSIVE ─── */
@media (max-width: 880px) {
  .toolbar { gap: 10px; }
  .view-toggle { margin-left: 0; }
  .filter-cluster { width: 100%; }
  .select-wrap { flex: 1 1 calc(50% - 4px); }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-meta { text-align: left; }
}

@media (max-width: 600px) {
  .site-header { padding: 16px 18px; }
  .lockup-up { font-size: 28px; }
  .hero-h1 { font-size: clamp(40px, 13vw, 64px); }
  .pillars { padding: 18px 18px; gap: 6px; }
  .pill { padding: 8px 14px; font-size: 12.5px; }
  .pill-icon svg { width: 16px; height: 16px; }
  #search { height: 46px; }
  .cards { grid-template-columns: 1fr; }
  .dr-content { padding: 22px 22px 40px; }
}
