/* progress.css — campaign progress dashboard ported from ezofsigmachi.org
   the-house.css lines 205-2308 (.th-progress, dash variant, cream variant,
   zones, markers, milestones, footer). Pair with /js/progress.js. */

/* ==========================================================================
   1b. PROGRESS BAND -- relocated from old hero, now its own section
   Fires counter + progress fill on intersection (data-progress-defer).
   ========================================================================== */
.th-progress {
  background: linear-gradient(180deg, var(--color-navy-900) 0%, #0a1d33 100%);
  color: var(--color-text-on-dark);
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(249, 189, 61, 0.25);
}

.th-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(249, 189, 61, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(249, 189, 61, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

.th-progress::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-500) 50%, transparent);
  pointer-events: none;
}

.th-progress__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .th-progress__inner {
    grid-template-columns: 1fr auto;
    gap: var(--space-16);
  }
}

.th-progress__lead {
  min-width: 0;
}

.th-progress__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-300);
  margin: 0 0 var(--space-3);
}

.th-progress__raised {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 8vw, 6.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-gold-300);
  margin: 0 0 var(--space-2);
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-4);
}

.th-progress__of {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.th-progress__bar {
  width: 100%;
  height: 8px;
  background: rgba(249, 189, 61, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin: var(--space-5) 0 var(--space-4);
}

.th-progress__bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold-500), var(--color-gold-300));
  border-radius: 999px;
  transition: width var(--dur-counter, 1800ms) var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1));
}

@media (prefers-reduced-motion: reduce) {
  .th-progress__bar-fill { transition: none; }
}

.th-progress__remaining {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--space-6);
  letter-spacing: 0.01em;
  max-width: 42ch;
}

.th-progress__remaining strong {
  color: #fff;
  font-weight: 700;
}

.th-progress__cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-2);
}

.th-progress__pct {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: start;
  column-gap: var(--space-1);
  row-gap: var(--space-2);
}

.th-progress__pct-num {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 13vw, 9.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--color-gold-300);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 18px rgba(249, 189, 61, 0.18);
}

.th-progress__pct-sym {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-gold-300);
  align-self: end;
  padding-bottom: 0.4em;
}

.th-progress__pct-label {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-1);
}

/* ==========================================================================
   1 (legacy). Old static hero -- retained for fallback / non-scrub pages.
   ========================================================================== */
.th-hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(-1 * var(--nav-height));
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-navy-900);
}

.th-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.th-hero__media picture,
.th-hero__media video {
  display: block;
  width: 100%;
  height: 100%;
}

.th-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

@media (prefers-reduced-motion: no-preference) {
  .th-hero__img--kenburns {
    animation: th-kenburns 28s ease-in-out infinite alternate;
    transform-origin: 50% 45%;
  }
}

@keyframes th-kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

.th-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 22, 41, 0.55) 0%, rgba(0, 22, 41, 0.35) 30%, rgba(0, 22, 41, 0.85) 100%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 22, 41, 0.65) 0%, transparent 70%);
}

.th-hero__content {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-16) var(--container-pad) var(--space-12);
  width: 100%;
  color: var(--color-text-on-dark);
  z-index: 1;
}

.th-hero__overline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-300);
  margin-bottom: var(--space-4);
}

.th-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--space-5);
  max-width: 18ch;
}

.th-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 38ch;
  margin: 0 0 var(--space-10);
}

.th-hero__progress {
  background: rgba(0, 22, 41, 0.5);
  border: 1px solid rgba(249, 189, 61, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.th-hero__progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.th-hero__progress-raised {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-gold-300);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.th-hero__progress-of {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.th-hero__progress-track {
  width: 100%;
  height: 6px;
  background: rgba(249, 189, 61, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.th-hero__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-500), var(--color-gold-300));
  border-radius: 999px;
  width: 0;
  transition: width var(--dur-counter, 1800ms) var(--ease-cinematic, ease-out);
}

.th-hero__progress-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  letter-spacing: 0.02em;
}

.th-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.th-hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
  padding: var(--space-3);
  z-index: 2;
}

.th-hero__scroll svg {
  width: 18px;
  height: 18px;
  animation: th-scroll-bounce 2s ease-in-out infinite;
}

@keyframes th-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .th-hero__scroll svg { animation: none; }
}

/* ---------- Generic section spacing ---------- */
.th-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  position: relative;
}

.th-section--alt {
  background: var(--color-cream-50);
}

.th-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--color-ink-900);
  margin: var(--space-3) 0 var(--space-6);
}

.th-section__lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--color-ink-500);
  margin: 0 0 var(--space-10);
  max-width: 64ch;
}

/* ---------- 2. WHY ---------- */
.th-why .pull-quote {
  margin-block: var(--space-16);
}

/* ---------- 3. VISION ---------- */
.th-vision__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .th-vision__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.th-vision__bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0 0;
  display: grid;
  gap: var(--space-3);
}

.th-vision__bullets li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink-900);
}

.th-vision__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 14px;
  height: 2px;
  background: var(--color-gold-500);
}

.th-vision__bullets strong {
  font-weight: 600;
  color: var(--color-navy-900);
}

.th-vision__render {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-navy-900);
}

.th-vision__render img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 800ms var(--ease-cinematic);
}

.th-vision__render:hover img {
  transform: scale(1.02);
}

.th-vision__render figcaption {
  padding: var(--space-3) var(--space-5);
  background: var(--color-navy-900);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- 4. NUMBERS ---------- */
.th-numbers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .th-numbers__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .th-numbers__grid { grid-template-columns: repeat(4, 1fr); }
}

.th-numbers__cell {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 3px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.th-numbers__cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.th-numbers__cell--accent {
  border-top-color: var(--color-sx-blue);
}

.th-numbers__cell--cta {
  background: var(--color-navy-900);
  color: #fff;
  border-top-color: var(--color-gold-500);
}

.th-numbers__amount {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-navy-900);
  font-variant-numeric: tabular-nums;
}

.th-numbers__cell--cta .th-numbers__amount {
  color: var(--color-gold-300);
}

.th-numbers__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-500);
}

.th-numbers__cell--cta .th-numbers__label {
  color: rgba(255, 255, 255, 0.75);
}

.th-numbers__note {
  font-size: var(--text-sm);
  color: var(--color-ink-500);
  margin: var(--space-2) 0 0;
}

.th-numbers__cell--cta .th-numbers__note {
  color: rgba(255, 255, 255, 0.7);
}

.th-numbers__timeline {
  text-align: center;
  margin-top: var(--space-12);
  font-size: var(--text-base);
  color: var(--color-ink-500);
  letter-spacing: 0.02em;
}

/* ---------- 5. FLOORS ---------- */
.th-floors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-10);
}

@media (min-width: 640px) {
  .th-floors__grid { grid-template-columns: repeat(2, 1fr); }
}

.th-floors__card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.th-floors__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--color-sx-blue);
}

.th-floors__card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  color: var(--color-navy-900);
}

.th-floors__card p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink-500);
  margin: 0;
}

.th-floors__more {
  margin-top: var(--space-10);
  font-size: var(--text-sm);
  color: var(--color-ink-500);
  text-align: center;
}

.th-floors__more a {
  color: var(--color-sx-blue);
  text-decoration: underline;
}

/* ---------- 6. LEADERS ---------- */
.th-leaders__lead {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-12);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}

@media (min-width: 1024px) {
  .th-leaders__lead {
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: var(--space-12);
    padding: var(--space-12);
  }
}

.th-leaders__lead-portrait {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--color-cream-50);
  overflow: hidden;
  border: 1px solid rgba(0, 22, 41, 0.08);
}

.th-leaders__lead-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pin photo: face high in frame, pin/lapel visible below. */
  object-position: center 22%;
}

.th-leaders__board {
  margin-top: clamp(var(--space-10), 6vw, var(--space-14));
  padding-top: clamp(var(--space-8), 4vw, var(--space-10));
  border-top: 1px solid rgba(0, 22, 41, 0.1);
}

.th-leaders__board-eyebrow {
  margin: 0 0 var(--space-6);
}

.th-leaders__board-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4) var(--space-8);
}

@media (min-width: 600px) {
  .th-leaders__board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .th-leaders__board-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.th-leaders__board-member {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(0, 22, 41, 0.08);
}

.th-leaders__board-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.th-leaders__board-role {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-500);
}

.th-leaders__lead-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: var(--space-2) 0;
  color: var(--color-navy-900);
}

.th-leaders__lead-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gold-text);
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-5);
}

.th-leaders__lead-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--color-ink-900);
  border-left: 3px solid var(--color-gold-500);
  padding-left: var(--space-5);
  margin: var(--space-5) 0;
}

.th-leaders__lead-bio {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-ink-500);
  margin: var(--space-4) 0 0;
}

.th-leaders__endorsements {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-10);
}

@media (min-width: 768px) {
  .th-leaders__endorsements { grid-template-columns: repeat(3, 1fr); }
}

.th-leaders__endorsement {
  background: var(--color-cream-50);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  border-top: 2px solid var(--color-gold-500);
}

.th-leaders__endorsement-quote {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink-900);
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-style: italic;
}

.th-leaders__endorsement-attribution {
  font-size: var(--text-sm);
  color: var(--color-ink-500);
  margin: 0;
}

.th-leaders__endorsement-attribution strong {
  color: var(--color-navy-900);
  font-weight: 600;
}

/* ---------- 7. TIERS ---------- */
.th-tiers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

@media (min-width: 640px) { .th-tiers__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .th-tiers__grid { grid-template-columns: repeat(3, 1fr); } }

.th-tiers__card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-7);
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.th-tiers__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-left-color: var(--color-gold-500);
}

.th-tiers__card--top {
  background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-navy-700) 100%);
  color: #fff;
  border-left-color: var(--color-gold-500);
}

.th-tiers__rank {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin: 0;
}

.th-tiers__card--top .th-tiers__rank {
  color: var(--color-gold-300);
}

.th-tiers__amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-navy-900);
  margin: 0;
  letter-spacing: -0.01em;
}

.th-tiers__card--top .th-tiers__amount { color: #fff; }

.th-tiers__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink-500);
  margin: var(--space-2) 0 0;
}

.th-tiers__card--top .th-tiers__desc {
  color: rgba(255, 255, 255, 0.85);
}

.th-tiers__tax {
  margin-top: var(--space-12);
  font-size: var(--text-sm);
  color: var(--color-ink-500);
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ---------- 8. COMMIT ---------- */
.th-commit {
  background: linear-gradient(180deg, var(--color-cream-50) 0%, var(--color-paper) 100%);
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}

.th-commit h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: var(--space-4) 0 var(--space-4);
}

.th-commit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ---------- Sticky CTA hide-when-bottom-section-visible ---------- */
.sticky-cta--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

/* ---------- Reveal alignment with reveal.js ---------- */
.reveal,
.reveal--left,
.reveal--right {
  opacity: 0;
  transition: opacity var(--dur-reveal, 700ms) var(--ease-cinematic, ease-out),
              transform var(--dur-reveal, 700ms) var(--ease-cinematic, ease-out);
}

.reveal { transform: translateY(20px); }
.reveal--left { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }

.reveal.visible,
.reveal--left.visible,
.reveal--right.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--left,
  .reveal--right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   00b. Rick's video - scroll-expand section
   ========================================================================== */
.th-rick {
  position: relative;
  width: 100%;
  height: 220vh;
  background-color: transparent;
  overflow: clip;
  isolation: isolate;
}

.th-rick__track {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.th-rick__card {
  position: relative;
  width: 380px;
  height: 240px;
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 22, 41, 0.18),
    0 4px 16px rgba(0, 22, 41, 0.08);
  z-index: 3;
  background: #000;
  will-change: width, height, border-radius;
}

@media (max-width: 720px) {
  .th-rick__card {
    width: 280px;
    height: 380px;
  }
}

.th-rick__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.th-rick__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 200ms ease, opacity 200ms ease;
  z-index: 4;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.th-rick__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.th-rick__play:focus-visible {
  outline: 2px solid var(--color-gold-500);
  outline-offset: 4px;
  border-radius: 999px;
}

.th-rick__caption {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 3;
  font-family: var(--font-body);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 28, 30, 0);
  pointer-events: none;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .th-rick { height: 100vh; }
  .th-rick__track { position: relative; }
  .th-rick__card {
    width: min(94vw, 1500px);
    height: min(82vh, 880px);
    border-radius: 8px;
  }
  .th-rick__caption { color: rgba(26, 28, 30, 0.7); }
}

/* ==========================================================================
   2b. FEATURE block — unified Vision + Lot layout: head copy on top,
   cinema carousel in the middle, optional bullets underneath. Both
   subsections share the same vertical rhythm so the page reads cohesive.
   ========================================================================== */
.th-feature {
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-12));
}

.th-feature + .th-feature {
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
  border-top: 1px solid rgba(0, 22, 41, 0.08);
}

.th-feature__head {
  max-width: 56rem;
}

.th-feature__head--small {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
}

.th-feature__bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4) var(--space-10);
  margin: 0;
  max-width: 64rem;
}

@media (min-width: 720px) {
  .th-feature__bullets {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   3. GIVE NOW — Givebutter iframe with navy frame + gold accent
   ========================================================================== */
.th-give {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-navy-900);
  box-shadow: 0 24px 70px -32px rgba(0, 22, 41, 0.45);
  border: 1px solid rgba(249, 189, 61, 0.25);
  padding: 4px;
}

.th-give::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-500) 50%, transparent);
  pointer-events: none;
  z-index: 2;
}

.th-give__iframe {
  display: block;
  width: 100%;
  height: clamp(700px, 90vh, 1100px);
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.th-give__fallback {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--color-ink-500);
  text-align: center;
}

.th-give__fallback a {
  color: var(--color-navy-900);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.th-give__fallback a:hover {
  color: var(--color-gold-500);
}

/* ==========================================================================
   2c. CONCEPT GALLERY CAROUSEL
   ========================================================================== */
.th-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Cinema variant: unified treatment used by Vision + Lot.
   Full-width container, consistent 16:9, object-fit cover (no letterbox),
   buttons overlay the image so they never steal horizontal space. */
.th-carousel--cinema {
  display: block;
  position: relative;
  width: 100%;
}

.th-carousel--cinema .th-carousel__track {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--color-navy-900);
}

.th-carousel--cinema .th-carousel__slide img {
  object-fit: cover;
}

.th-carousel--cinema .th-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.th-carousel--cinema .th-carousel__btn--prev {
  left: var(--space-4);
}

.th-carousel--cinema .th-carousel__btn--next {
  right: var(--space-4);
}

.th-carousel--cinema .th-carousel__btn:hover {
  background: var(--color-navy-900);
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 720px) {
  .th-carousel--cinema .th-carousel__track {
    aspect-ratio: 4 / 3;
  }
}

.th-carousel__track {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-paper);
  box-shadow: 0 24px 70px -36px rgba(0, 22, 41, 0.45);
  aspect-ratio: 16 / 9;
}

.th-carousel__slide img {
  background: var(--color-paper);
}

.th-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 500ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1));
  pointer-events: none;
}

.th-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.th-carousel__slide[hidden] {
  display: block;
}

.th-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.th-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-8) var(--space-6) var(--space-5);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 22, 41, 0.85) 100%);
  color: var(--color-text-on-dark);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.th-carousel__caption-num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-300);
}

.th-carousel__caption-label {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.th-carousel__btn {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(0, 22, 41, 0.18);
  background: var(--color-paper);
  color: var(--color-navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, color 200ms ease;
  box-shadow: 0 6px 20px -10px rgba(0, 22, 41, 0.35);
}

.th-carousel__btn svg {
  width: 22px;
  height: 22px;
}

.th-carousel__btn:hover {
  background: var(--color-navy-900);
  color: var(--color-gold-300);
  border-color: var(--color-navy-900);
  transform: scale(1.05);
}

.th-carousel__btn:focus-visible {
  outline: 2px solid var(--color-gold-500);
  outline-offset: 3px;
}

.th-carousel__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 720px) {
  .th-carousel { gap: var(--space-2); }
  .th-carousel__btn { width: 44px; height: 44px; }
  .th-carousel__btn svg { width: 18px; height: 18px; }
  .th-carousel__caption { padding: var(--space-6) var(--space-4) var(--space-4); }
}

/* ==========================================================================
   PROGRESS BAND — funding breakdown chips + count-up + sublabel
   Adds to the existing .th-progress block; works with the IntersectionObserver
   script at the bottom of the-house.html.
   ========================================================================== */
.th-progress__milestones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}

.th-progress__milestone {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(249, 189, 61, 0.06);
  border: 1px solid rgba(249, 189, 61, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1)),
              transform 600ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1)),
              background 200ms ease,
              border-color 200ms ease;
}

.th-progress__milestone[data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

.th-progress__milestone-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--color-gold-300);
  font-variant-numeric: tabular-nums;
}

.th-progress__milestone-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.th-progress__sublabel {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 var(--space-6);
}

/* Count-up element gets tabular numbers so the layout doesn't reflow
   while the value animates. */
.th-progress__raised [data-progress-raised],
.th-progress__pct-num {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .th-progress__milestone {
    transition: none;
  }
}

/* ==========================================================================
   CAMPAIGN PROGRESS — Dashboard variant (.th-progress--dash)
   3-up stat grid + animated bar with shimmer + pulsing markers + milestone chips.
   Activated when the section gets data-progress-state="active" from the IO script.
   ========================================================================== */

.th-progress--dash .th-progress__header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-12));
}

.th-progress--dash .th-progress__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-300);
  margin: 0 0 var(--space-3);
}

.th-progress__display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

/* === Stat dashboard (3-up grid) === */

.th-progress__dash {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-10));
}

@media (min-width: 720px) {
  .th-progress__dash {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.th-progress__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(var(--space-6), 3.5vw, var(--space-8)) var(--space-5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(249, 189, 61, 0.18);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1)),
              transform 700ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1));
}

.th-progress__stat::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(249, 189, 61, 0.55) 0%, rgba(249, 189, 61, 0) 50%, rgba(249, 189, 61, 0.25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.th-progress__stat::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  right: -10%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(249, 189, 61, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.th-progress[data-progress-state="active"] .th-progress__stat {
  opacity: 1;
  transform: translateY(0);
}

.th-progress[data-progress-state="active"] .th-progress__stat:nth-child(2) {
  transition-delay: 100ms;
}

.th-progress[data-progress-state="active"] .th-progress__stat:nth-child(3) {
  transition-delay: 200ms;
}

.th-progress__stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--color-gold-300);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  text-shadow: 0 2px 24px rgba(249, 189, 61, 0.22);
}

.th-progress__stat-num-sym {
  font-size: 0.55em;
  margin-left: 0.05em;
  opacity: 0.85;
}

.th-progress__stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: var(--space-3);
}

/* === Animated bar === */

.th-progress__bar-wrap {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-10));
}

.th-progress--dash .th-progress__bar {
  width: 100%;
  height: 14px;
  background: transparent;
  border-radius: 999px;
  margin: 0 0 var(--space-3);
  padding: 0;
  overflow: visible;
  position: relative;
}

.th-progress__bar-track {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(249, 189, 61, 0.10);
  border: 1px solid rgba(249, 189, 61, 0.20);
  border-radius: 999px;
  overflow: hidden;
}

.th-progress--dash .th-progress__bar-fill {
  position: relative;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold-500, #F9BD3D) 0%, var(--color-gold-300, #F9D87A) 60%, var(--color-gold-500, #F9BD3D) 100%);
  border-radius: 999px;
  transition: width 2000ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1));
  box-shadow: 0 0 24px rgba(249, 189, 61, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.th-progress__bar-shimmer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.th-progress[data-progress-state="active"] .th-progress__bar-shimmer {
  animation: th-progress-shimmer 1600ms 1600ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1)) forwards,
             th-progress-shimmer-loop 4000ms 3400ms ease-in-out infinite;
  opacity: 1;
}

@keyframes th-progress-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

@keyframes th-progress-shimmer-loop {
  0%   { transform: translateX(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(400%); opacity: 0; }
}

/* Markers along the bar — pulse gold when the fill crosses them */
.th-progress__bar-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.th-progress__bar-marker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-cream-50, #F4EBDD);
  border: 2px solid var(--color-gold-500, #F9BD3D);
  box-shadow: 0 0 0 0 rgba(249, 189, 61, 0.65);
  transition: box-shadow 0.4s ease, background 0.4s ease, transform 0.4s ease;
}

.th-progress__bar-marker[data-passed="true"] .th-progress__bar-marker-dot {
  background: var(--color-gold-500, #F9BD3D);
  animation: th-progress-marker-pulse 1.6s ease-out 1;
}

@keyframes th-progress-marker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(249, 189, 61, 0.65); transform: scale(1); }
  60%  { box-shadow: 0 0 0 16px rgba(249, 189, 61, 0); transform: scale(1.35); }
  100% { box-shadow: 0 0 0 0 rgba(249, 189, 61, 0); transform: scale(1); }
}

.th-progress__bar-marker-caption {
  position: absolute;
  top: calc(100% + 10px);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.th-progress__bar-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-8);
}

.th-progress__bar-scale-mid {
  color: rgba(255, 255, 255, 0.40);
}

/* === Milestone chips below the bar (preserved, restyled for dash) === */

.th-progress--dash .th-progress__milestones {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .th-progress--dash .th-progress__milestones {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.th-progress--dash .th-progress__milestone {
  align-items: center;
  text-align: center;
  padding: var(--space-4) var(--space-5);
}

.th-progress--dash .th-progress__milestone-value {
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
}

/* === Footer (sublabel + CTA) === */

.th-progress__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.th-progress--dash .th-progress__sublabel {
  margin: 0;
}

.th-progress--dash .th-progress__cta {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .th-progress__stat,
  .th-progress--dash .th-progress__bar-fill {
    transition: none;
  }
  .th-progress[data-progress-state="active"] .th-progress__bar-shimmer {
    animation: none;
    opacity: 0;
  }
  .th-progress__bar-marker[data-passed="true"] .th-progress__bar-marker-dot {
    animation: none;
  }
}

/* ==========================================================================
   CAMPAIGN PROGRESS — Cinematic dash polish (blueprint backdrop, 3-zone bar,
   donor mosaic, corner annotations).
   ========================================================================== */

/* Override the generic radial gradient backdrop for the dash variant only.
   Blueprint grid pattern using stacked CSS gradients masked with a soft vignette. */
.th-progress--dash {
  padding-block: clamp(var(--space-20), 11vw, var(--space-32));
}

.th-progress--dash::before {
  background:
    /* Spotlight on the dashboard area */
    radial-gradient(ellipse at 50% 45%, rgba(249, 189, 61, 0.10) 0%, transparent 55%),
    /* Major grid 80px */
    linear-gradient(to right, rgba(249, 189, 61, 0.055) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(to bottom, rgba(249, 189, 61, 0.055) 1px, transparent 1px) 0 0 / 80px 80px,
    /* Minor grid 16px */
    linear-gradient(to right, rgba(249, 189, 61, 0.022) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom, rgba(249, 189, 61, 0.022) 1px, transparent 1px) 0 0 / 16px 16px;
  -webkit-mask: radial-gradient(ellipse at center, #000 0%, #000 55%, transparent 95%);
          mask: radial-gradient(ellipse at center, #000 0%, #000 55%, transparent 95%);
  opacity: 0.85;
  z-index: 0;
}

/* === Blueprint corner annotations === */

.th-progress__bp {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.th-progress__bp-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 189, 61, 0.55);
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(249, 189, 61, 0.20);
  background: rgba(0, 22, 41, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 4px;
}

.th-progress__bp-corner--tl { top: var(--space-6); left: var(--space-6); }
.th-progress__bp-corner--tr { top: var(--space-6); right: var(--space-6); }
.th-progress__bp-corner--bl { bottom: var(--space-6); left: var(--space-6); }
.th-progress__bp-corner--br { bottom: var(--space-6); right: var(--space-6); }

.th-progress__bp-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.22em;
}

.th-progress__bp-value {
  color: rgba(249, 189, 61, 0.85);
  font-weight: 600;
}

@media (max-width: 720px) {
  /* On narrow screens, keep only top corners visible */
  .th-progress__bp-corner--bl,
  .th-progress__bp-corner--br { display: none; }
  .th-progress__bp-corner { font-size: 9px; padding: 6px 8px; }
}

.th-progress--dash .container {
  position: relative;
  z-index: 1;
}

/* === Bar zones (labels above the bar) === */

.th-progress__bar-zones {
  display: flex;
  width: 100%;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.th-progress__bar-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-2);
  border-right: 1px dashed rgba(249, 189, 61, 0.18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-progress__bar-zone:last-child { border-right: 0; }

.th-progress__bar-zone--secured  .th-progress__bar-zone-label { color: rgba(249, 189, 61, 0.95); }
.th-progress__bar-zone--financed .th-progress__bar-zone-label { color: rgba(249, 189, 61, 0.70); }
.th-progress__bar-zone--toraise  .th-progress__bar-zone-label { color: rgba(255, 255, 255, 0.45); }

@media (max-width: 640px) {
  .th-progress__bar-zones { font-size: 9px; letter-spacing: 0.08em; line-height: 1.2; }
  .th-progress__bar-zone {
    padding: 0 4px;
    white-space: normal;
    text-align: center;
    overflow: visible;
    text-overflow: clip;
  }
}

/* Vertical divider lines inside the bar at zone boundaries */
.th-progress__bar-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
  pointer-events: none;
}

/* === 3-marker variants === */

.th-progress__bar-marker--now .th-progress__bar-marker-dot {
  width: 22px;
  height: 22px;
  background: var(--color-gold-500, #F9BD3D);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(249, 189, 61, 0.22), 0 0 18px rgba(249, 189, 61, 0.6);
}

.th-progress__bar-marker--now .th-progress__bar-marker-caption {
  color: #fff;
  font-weight: 700;
}

.th-progress__bar-marker--goal .th-progress__bar-marker-dot {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  border-style: dashed;
}

.th-progress__bar-marker--goal .th-progress__bar-marker-caption {
  color: rgba(255, 255, 255, 0.55);
  left: auto;
  right: 0;
  transform: none;
}

/* "Now" marker breathes after entrance (only when active and passed) */
.th-progress[data-progress-state="active"] .th-progress__bar-marker--now[data-passed="true"] .th-progress__bar-marker-dot {
  animation: th-progress-marker-pulse 1.6s ease-out 1, th-progress-marker-breathe 2.6s ease-in-out 1.6s infinite;
}

@keyframes th-progress-marker-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(249, 189, 61, 0.22), 0 0 18px rgba(249, 189, 61, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(249, 189, 61, 0.12), 0 0 28px rgba(249, 189, 61, 0.85); }
}

/* === Donor avatar mosaic === */

.th-progress__stat--donors {
  padding-bottom: clamp(var(--space-8), 4vw, var(--space-10));
}

.th-progress__donor-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8px, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 220px;
  margin-top: var(--space-4);
}

.th-progress__donor-dot {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--color-gold-300, #F9D87A);
  box-shadow: 0 0 6px rgba(249, 189, 61, 0.55);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 220ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1)),
              transform 220ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1));
}

.th-progress__donor-mosaic[data-revealed="true"] .th-progress__donor-dot {
  opacity: 0.85;
  transform: scale(1);
}

/* === Cinematic entrance: elements default hidden, fade up when state=active ===
   Defaulting to hidden avoids a flash before JS runs. A <noscript> override at
   the end of this rule set keeps the layout visible for no-JS users. */

.th-progress--dash .th-progress__header,
.th-progress--dash .th-progress__bar-wrap,
.th-progress--dash .th-progress__milestones,
.th-progress--dash .th-progress__footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1)),
              transform 900ms var(--ease-cinematic, cubic-bezier(0.22, 1, 0.36, 1));
}

.th-progress--dash[data-progress-state="active"] .th-progress__header { opacity: 1; transform: none; transition-delay: 0ms; }
.th-progress--dash[data-progress-state="active"] .th-progress__bar-wrap { opacity: 1; transform: none; transition-delay: 600ms; }
.th-progress--dash[data-progress-state="active"] .th-progress__milestones { opacity: 1; transform: none; transition-delay: 1100ms; }
.th-progress--dash[data-progress-state="active"] .th-progress__footer { opacity: 1; transform: none; transition-delay: 1400ms; }

/* Stat cards already stagger via existing rules; bump their base delay
   so they appear after the header lands. */
.th-progress--dash[data-progress-state="active"] .th-progress__stat:nth-child(1) { transition-delay: 250ms; }
.th-progress--dash[data-progress-state="active"] .th-progress__stat:nth-child(2) { transition-delay: 400ms; }
.th-progress--dash[data-progress-state="active"] .th-progress__stat:nth-child(3) { transition-delay: 550ms; }

@media (prefers-reduced-motion: reduce) {
  .th-progress--dash .th-progress__header,
  .th-progress--dash .th-progress__bar-wrap,
  .th-progress--dash .th-progress__milestones,
  .th-progress--dash .th-progress__footer {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .th-progress--dash .th-progress__donor-dot { transition: none; }
  .th-progress[data-progress-state="active"] .th-progress__bar-marker--now[data-passed="true"] .th-progress__bar-marker-dot {
    animation: none;
  }
}

/* ==========================================================================
   CAMPAIGN PROGRESS — Cream variant (.th-progress--cream)
   Flips the section to a cream backdrop matching the rest of the page.
   Bar becomes the strong navy element. Compact padding, smaller stat cards.
   This file's earlier .th-progress--dash rules still apply; rules below override
   colors, sizing, and remove the blueprint backdrop.
   ========================================================================== */

.th-progress--cream {
  background: var(--color-cream-50, #F8F4EA);
  color: var(--color-navy-900);
  border-block: 1px solid rgba(0, 22, 41, 0.10);
  /* Tight padding (back to roughly the original compact size) */
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
}

/* Strip the blueprint grid pseudo-element on the cream variant */
.th-progress--cream::before {
  background: none;
  -webkit-mask: none;
          mask: none;
  opacity: 0;
}

.th-progress--cream::after {
  /* Replace the gold top edge with a subtle navy tick */
  background: linear-gradient(90deg, transparent, rgba(0, 22, 41, 0.18) 50%, transparent);
}

/* === Header on cream === */

.th-progress--cream .th-progress__eyebrow {
  color: var(--color-navy-700, var(--color-navy-900));
}

.th-progress--cream .th-progress__display {
  color: var(--color-navy-900);
}

.th-progress--cream .th-progress__header {
  margin-bottom: clamp(var(--space-6), 3.5vw, var(--space-8));
}

/* === Stat cards on cream === */

.th-progress--cream .th-progress__stat {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 22, 41, 0.10);
  padding: clamp(var(--space-4), 2.5vw, var(--space-6)) var(--space-4);
}

.th-progress--cream .th-progress__stat::before {
  background: linear-gradient(135deg, rgba(0, 22, 41, 0.18) 0%, rgba(0, 22, 41, 0) 60%, rgba(0, 22, 41, 0.08) 100%);
}

.th-progress--cream .th-progress__stat::after {
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 22, 41, 0.06) 0%, transparent 65%);
}

.th-progress--cream .th-progress__stat-num {
  /* Smaller, more proportionate numbers */
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  color: var(--color-navy-900);
  text-shadow: none;
}

.th-progress--cream .th-progress__stat-num-sym {
  color: inherit;
}

.th-progress--cream .th-progress__stat-label {
  color: rgba(0, 22, 41, 0.62);
  margin-top: var(--space-2);
}

.th-progress--cream .th-progress__dash {
  margin-bottom: clamp(var(--space-6), 3.5vw, var(--space-8));
}

/* === Bar = the strong navy element === */

.th-progress--cream .th-progress__bar-track {
  background: var(--color-navy-900);
  border: 1px solid var(--color-navy-900);
  box-shadow: 0 6px 18px rgba(0, 22, 41, 0.18);
}

.th-progress--cream .th-progress__bar-divider {
  background: rgba(255, 255, 255, 0.20);
}

.th-progress--cream .th-progress__bar-fill {
  /* Gold fill glows against the navy track */
  background: linear-gradient(90deg, var(--color-gold-500, #C5A572) 0%, var(--color-gold-300, #E0C893) 60%, var(--color-gold-500, #C5A572) 100%);
  box-shadow: 0 0 18px rgba(197, 165, 114, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Zone labels above the bar -- navy tones */
.th-progress--cream .th-progress__bar-zone--secured  .th-progress__bar-zone-label { color: var(--color-navy-900); }
.th-progress--cream .th-progress__bar-zone--financed .th-progress__bar-zone-label { color: rgba(0, 22, 41, 0.65); }
.th-progress--cream .th-progress__bar-zone--toraise  .th-progress__bar-zone-label { color: rgba(0, 22, 41, 0.38); }

.th-progress--cream .th-progress__bar-zone {
  border-right-color: rgba(0, 22, 41, 0.18);
}

/* Markers */
.th-progress--cream .th-progress__bar-marker-dot {
  background: var(--color-cream-50, #F8F4EA);
  border-color: var(--color-gold-500, #C5A572);
}

.th-progress--cream .th-progress__bar-marker-caption {
  color: rgba(0, 22, 41, 0.65);
}

.th-progress--cream .th-progress__bar-marker--now .th-progress__bar-marker-dot {
  background: var(--color-gold-500, #C5A572);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.25), 0 0 14px rgba(197, 165, 114, 0.6);
}

.th-progress--cream .th-progress__bar-marker--now .th-progress__bar-marker-caption {
  color: var(--color-navy-900);
  font-weight: 700;
}

.th-progress--cream .th-progress__bar-marker--goal .th-progress__bar-marker-dot {
  background: transparent;
  border-color: rgba(0, 22, 41, 0.40);
  border-style: dashed;
}

.th-progress--cream .th-progress__bar-marker--goal .th-progress__bar-marker-caption {
  color: rgba(0, 22, 41, 0.45);
}

/* Bar scale (the $0 / $6.5M / $13M tick labels) -- navy tones */
.th-progress--cream .th-progress__bar-scale {
  color: rgba(0, 22, 41, 0.50);
}

.th-progress--cream .th-progress__bar-scale-mid {
  color: rgba(0, 22, 41, 0.30);
}

.th-progress--cream .th-progress__bar-wrap {
  margin-bottom: clamp(var(--space-6), 3.5vw, var(--space-8));
}

/* === Milestone chips on cream === */

.th-progress--cream .th-progress__milestone {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 22, 41, 0.12);
}

.th-progress--cream .th-progress__milestone-value {
  color: var(--color-navy-900);
}

.th-progress--cream .th-progress__milestone-label {
  color: rgba(0, 22, 41, 0.55);
}

/* === Footer (sublabel + CTA) on cream === */

.th-progress--cream .th-progress__sublabel {
  color: rgba(0, 22, 41, 0.55);
}

.th-progress--cream .th-progress__footer {
  gap: var(--space-3);
}
