/* ==========================================================================
   the-house.css - EZ New House Initiative cinematic page
   See MASTER.md for tokens. Page namespace: th-
   ========================================================================== */

/* ---------- Active nav state ---------- */
.nav-link--active {
  color: var(--color-gold-text);
}

.nav-link--active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gold-500);
  margin-top: 4px;
}

/* ---------- Persistent Donate button in nav ---------- */
.btn--nav {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  min-height: 40px;
  margin-left: var(--space-3);
}

/* ==========================================================================
   1. HERO -- cinematic scroll-scrub (bird's-eye -> street-view)
   Replaces the previous static .sx-hero on this page.
   Video is scrubbed by ScrollTrigger (see animations.js [data-scrub-video]).
   Mobile + prefers-reduced-motion fall back to a static end-frame poster.
   ========================================================================== */
.th-hero-scrub {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  /* No negative margin here -- ScrollTrigger.pin sets position:fixed which
     conflicts with margin tricks. The fixed nav (transparent on this page)
     overlays the top of the hero naturally. */
  overflow: hidden;
  isolation: isolate;
  background: var(--color-navy-900);
}

.th-hero-scrub__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.th-hero-scrub__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.th-hero-scrub__fallback {
  display: none;
  position: absolute;
  inset: 0;
}

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

.th-hero-scrub__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.th-hero-scrub__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: var(--space-16) var(--container-pad) clamp(4rem, 12vh, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: var(--color-text-on-dark);
}

.th-hero-scrub__lockup {
  max-width: 38rem;
  margin-left: clamp(var(--space-4), 8vw, 7rem);
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}

.th-hero-scrub__lockup .sx-hero__overline {
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  margin-bottom: var(--space-3);
}

.th-hero-scrub__lockup .sx-hero__overline::before {
  width: 24px;
}

.th-hero-scrub__lockup .sx-hero__title {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: var(--space-4);
}

.th-hero-scrub__lockup .sx-hero__subtitle {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.5;
  max-width: 38ch;
  margin-bottom: var(--space-6);
}

.th-hero-scrub__lockup .btn--lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
}

@media (max-width: 720px) {
  .th-hero-scrub__lockup {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 768px) {
  .th-hero-scrub__lockup {
    opacity: 1;
    transform: none;
  }
}

.th-hero-scrub__scroll-indicator {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.th-hero-scrub__scroll-indicator span {
  display: inline-block;
  animation: th-scrub-bounce 2.4s ease-in-out infinite;
}

@keyframes th-scrub-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce), (max-width: 768px) {
  .th-hero-scrub__video { display: none; }
  .th-hero-scrub__fallback { display: block; }
  .th-hero-scrub__scroll-indicator { display: none; }
  .th-hero-scrub__inner { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .th-hero-scrub__scroll-indicator span { animation: none; }
}

/* ==========================================================================
   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;
  object-position: center top;
}

.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); }
}
