/* KaeCo Capital — pages/home.css | Home page styles */


/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-h);
  background-image: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1920&q=85');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 30, 0.92) 0%,
    rgba(10, 15, 30, 0.75) 50%,
    rgba(19,24,94, 0.25) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 100px;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(19,24,94,0.35);
  border: 1px solid rgba(19,24,94,0.5);
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero-heading-accent {
  color: rgba(255,255,255,0.75);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-sub strong { color: var(--color-white); }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}


/* =========================================================
   STATS BAR
   ========================================================= */
.stats-bar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 56px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 240px;
  padding: 20px 32px;
}

.stat-divider {
  width: 1px;
  height: 70px;
  background: var(--color-border);
  flex-shrink: 0;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-slate);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}


/* =========================================================
   USER ROUTING
   ========================================================= */
.routing-section {
  padding: 96px 0;
  background: var(--color-bg);
}

.routing-container {
  max-width: 860px;
}

.routing-header {
  text-align: center;
  margin-bottom: 40px;
}

.routing-header .section-heading { margin-bottom: 8px; }

.routing-sub {
  text-align: center !important;
  max-width: 520px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.routing-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--color-border);
  color: var(--color-charcoal);
  background: var(--color-bg);
  transition: all var(--transition);
}

.pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.pill-icon { font-size: 0.5rem; }

.pill-description-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  min-height: 80px;
  transition: all var(--transition);
}

#pillDescriptionText {
  font-size: 0.95rem;
  color: var(--color-charcoal-md);
  line-height: 1.6;
}

.pill-cta { flex-shrink: 0; }

/* ── Routing cards (redesigned) ─────────────────────────── */
.routing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

.routing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.routing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.routing-card--investor::before { background: var(--color-primary); }
.routing-card--builder::before  { background: var(--color-gold); }

.routing-card:hover {
  box-shadow: 0 12px 40px rgba(15,23,42,0.12);
  transform: translateY(-3px);
}

.routing-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.routing-card--investor .routing-card-icon {
  background: rgba(19,24,94,0.07);
  color: var(--color-primary);
}

.routing-card--builder .routing-card-icon {
  background: rgba(223,188,103,0.15);
  color: #a07d20;
}

.routing-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 10px;
  line-height: 1.25;
}

.routing-card-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-slate);
  margin-bottom: 20px;
}

.routing-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  flex: 1;
}

.routing-card-features li {
  font-size: 0.85rem;
  color: var(--color-charcoal-md);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.routing-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 0.8rem;
}

.routing-card--investor .routing-card-features li::before { color: var(--color-primary); }
.routing-card--builder  .routing-card-features li::before { color: #a07d20; }

.routing-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Investor → navy button */
.routing-btn-investor {
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius-full, 50px);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background var(--transition), box-shadow var(--transition);
}
.routing-btn-investor:hover {
  background: #0e1260;
  box-shadow: 0 6px 20px rgba(19,24,94,0.30);
}

/* Builder → gold button */
.routing-btn-builder {
  background: var(--color-gold);
  border: 2px solid var(--color-gold);
  color: #1a1200;
  padding: 13px 24px;
  border-radius: var(--radius-full, 50px);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background var(--transition), box-shadow var(--transition);
}
.routing-btn-builder:hover {
  background: #c9a94e;
  box-shadow: 0 6px 20px rgba(223,188,103,0.35);
}

@media (max-width: 640px) {
  .routing-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* =========================================================
   VALUE PROPOSITION GRID
   ========================================================= */
.value-props {
  padding: 96px 0;
  background: var(--color-bg-alt);
}

.vp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vp-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border-top: 3px solid var(--color-primary);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.vp-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.vp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(19,24,94,0.08);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.vp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 10px;
}

.vp-text {
  font-size: 0.9rem;
  color: var(--color-slate);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.vp-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}

.vp-link:hover { color: var(--color-primary-dk); letter-spacing: 0.02em; }


/* =========================================================
   MARKET COMPARISON
   ========================================================= */
.market-section {
  padding: 0;
  background: var(--color-bg);
  overflow: hidden;
}

.market-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 680px;
}

.market-text {
  padding: 96px 64px 96px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.market-desc {
  font-size: 1.05rem;
  color: var(--color-slate);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 28px;
}

.market-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.market-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--color-charcoal-md);
  line-height: 1.6;
}

.market-list-icon {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Chart area */
.market-chart-area {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Construction photo — replaces chart in Why Invest section */
.market-photo-area {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.market-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
}

.market-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(10,14,40,0.80), transparent);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.chart-placeholder {
  padding: 28px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-slate);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend-re   { background: var(--color-primary); }
.legend-sp   { background: #4A90D9; }
.legend-bond { background: var(--color-slate-lt); }

.chart-bars { width: 100%; }

.chart-svg { width: 100%; height: auto; display: block; }

.chart-disclaimer {
  font-size: 0.72rem;
  color: var(--color-slate-lt);
  margin-top: 12px;
  font-style: italic;
  text-align: center;
}


/* =========================================================
   MARKETS / CITIES STRIP
   ========================================================= */
.markets-section {
  padding: 96px 0 0;
  background: var(--color-bg);
  overflow: hidden;
}

.markets-track-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

/* Gradient fade edges */
.markets-track-wrap::before,
.markets-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.markets-track-wrap::before { left: 0; background: linear-gradient(to right, var(--color-bg), transparent); }
.markets-track-wrap::after  { right: 0; background: linear-gradient(to left,  var(--color-bg), transparent); }

.markets-track {
  display: flex;
  gap: 16px;
  padding: 0 40px 56px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.markets-track::-webkit-scrollbar { display: none; }
.markets-track.grabbing { cursor: grabbing; }

.market-card {
  flex: 0 0 280px;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* CSS hover disabled — JS tilt handles it via rAF */

.market-card-img {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.market-card:hover .market-card-img { transform: scale(1.08); }

.market-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.85) 0%, rgba(10,15,30,0.1) 60%, transparent 100%);
}

.market-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}

.market-city {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
}

.market-state {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .markets-section { padding-top: 64px; }
  .market-card { flex: 0 0 240px; height: 320px; }

  /* Disable parallax Y-shift on mobile — images stay centered in card */
  .market-card-img {
    inset: -5%;
    transform: none !important;
    background-position: center center;
  }
}


/* =========================================================
   INTERACTIVE CHART
   ========================================================= */
.market-chart-area {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 24px 20px 16px;
}

.chart-legend-interactive {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cli-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  border-radius: 30px;
  color: var(--color-slate);
  background: var(--color-bg);
  transition: all var(--transition);
  user-select: none;
}

.cli-btn.cli-active {
  border-color: transparent;
  color: var(--color-charcoal);
  background: var(--color-bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.cli-btn.cli-inactive {
  opacity: 0.45;
  text-decoration: line-through;
}

.cli-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
}

#perfChart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-tooltip {
  position: absolute;
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.78rem;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 160px;
  transform: translate(-50%, -110%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.chart-tooltip[hidden] { display: none; }

.ct-year {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 5px;
}

.ct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
}

.ct-label { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7); }
.ct-swatch { width: 7px; height: 7px; border-radius: 50%; }
.ct-value { font-weight: 700; color: var(--color-white); }


/* =========================================================
   INVESTMENT PROCESS SECTION
   ========================================================= */
.process-section {
  background: var(--color-charcoal);
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(19,24,94,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(19,24,94,0.06) 0%, transparent 45%);
  pointer-events: none;
}

.process-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.process-section .section-eyebrow { color: #DFBC67; background: rgba(223,188,103,0.10); border-color: rgba(223,188,103,0.25); }
.process-section .section-heading { color: var(--color-white); }
.process-section .section-sub { color: var(--color-slate-lt); margin-left: auto; margin-right: auto; }
.process-section .section-header { position: relative; z-index: 1; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 64px;
  z-index: 1;
}

/* Horizontal connector line between step numbers */
.process-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(19,24,94,0.5) 20%,
    rgba(19,24,94,0.3) 50%,
    rgba(19,24,94,0.5) 80%,
    transparent
  );
}

.process-step {
  padding: 0 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-step-num {
  width: 56px;
  height: 56px;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  background: var(--color-charcoal);
  position: relative;
  z-index: 2;
  transition: background var(--transition), color var(--transition), transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}

.process-step:hover .process-step-num {
  background: var(--color-gold);
  color: #0D1248;
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(223,188,103,0.15);
}

.process-step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 14px;
  font-family: var(--font-sans);
}

.process-step-content p {
  font-size: 0.875rem;
  color: var(--color-slate-lt);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 56px 32px;
  }
  .process-steps::before { display: none; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .process-section { padding: 72px 0 80px; }
}


/* =========================================================
   PORTFOLIO TABS SECTION
   ========================================================= */
.portfolio-section {
  padding: 96px 0;
  background: var(--color-bg);
}

.ptabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.ptab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  color: var(--color-slate);
  background: var(--color-bg);
  transition: all var(--transition);
}

.ptab-icon { font-size: 1rem; }

.ptab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.ptab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.ptab-panels { position: relative; min-height: 320px; }

.ptab-panel {
  animation: ptabFadeIn 0.4s ease forwards;
}

.ptab-panel[hidden] { display: none; }

@keyframes ptabFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pcards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pcard {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pcard:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.pcard-img {
  height: 160px;
  position: relative;
  overflow: hidden;
}

/* Fallback color while images load */
.pcard-img { background-color: #0e1223; }

/* Overlay grid pattern on card images */
.pcard-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 30px, rgba(255,255,255,0.03) 30px, rgba(255,255,255,0.03) 31px
  ),
  repeating-linear-gradient(
    0deg, transparent, transparent 30px, rgba(255,255,255,0.03) 30px, rgba(255,255,255,0.03) 31px
  );
}

.pcard-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 30px;
  z-index: 1;
}
.pcard-badge--active { background: rgba(10,15,30,.82);  color: var(--color-gold,#DFBC67); }
.pcard-badge--dev    { background: rgba(19,24,94,.85);   color: #fff; }
.pcard-badge--renov  { background: rgba(10,15,30,.82);   color: rgba(255,255,255,.85); }

.pcard-body { padding: 20px 22px 22px; }

.pcard-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.pcard-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 4px;
}

.pcard-location {
  font-size: 0.82rem;
  color: var(--color-slate);
  margin-bottom: 16px;
}
.pcard-location::first-letter { color: var(--color-primary); font-size: 0.6rem; }

.pcard-metrics {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.pcard-metric {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid var(--color-border);
}
.pcard-metric:last-child { border-right: none; }

.pmetric-val {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-charcoal);
  line-height: 1;
  margin-bottom: 3px;
}

.pmetric-lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-slate-lt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pcard-btn {
  width: 100%;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  transition: all var(--transition);
}
.pcard-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .pcards-grid { grid-template-columns: 1fr; }
  .portfolio-section { padding: 64px 0; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .pcards-grid { grid-template-columns: repeat(2, 1fr); }
}


/* =========================================================
   PORTFOLIO CARD IMAGES — Construction / DFW Themed
   ========================================================= */
/* Single-Family New Construction */
.pcard-img--mf1 { background: url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?w=600&q=85') center/cover no-repeat; }
.pcard-img--mf2 { background: url('https://images.unsplash.com/photo-1600607686527-6fb886090705?w=600&q=85') center/cover no-repeat; }
.pcard-img--mf3 { background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=600&q=85') center/cover no-repeat; }
/* Build-to-Rent */
.pcard-img--ind1 { background: url('https://images.unsplash.com/photo-1580587771525-78b9dba3b914?w=600&q=85') center/cover no-repeat; }
.pcard-img--ind2 { background: url('https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?w=600&q=85') center/cover no-repeat; }
.pcard-img--ind3 { background: url('https://images.unsplash.com/photo-1613977257592-4871e5fcd7c4?w=600&q=85') center/cover no-repeat; }
/* Spec Homes */
.pcard-img--off1 { background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=600&q=85') center/cover no-repeat; }
.pcard-img--off2 { background: url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=600&q=85') center/cover no-repeat; }
.pcard-img--off3 { background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=600&q=85') center/cover no-repeat; }
/* Bridge & Renovation */
.pcard-img--ret1 { background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=600&q=85') center/cover no-repeat; }
.pcard-img--ret2 { background: url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?w=600&q=85') center/cover no-repeat; }
.pcard-img--ret3 { background: url('https://images.unsplash.com/photo-1523217582562-09d0def993a6?w=600&q=85') center/cover no-repeat; }


/* =========================================================
   FEATURE SPOTLIGHT SECTION
   ========================================================= */
.spotlight-section {
  background: #0D1117;
  overflow: hidden;
}

.spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

/* ---- Image column ---- */
.spotlight-img-col {
  position: relative;
  overflow: hidden;
}

.spotlight-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.spotlight-section:hover .spotlight-img {
  transform: scale(1.0);
}

.spotlight-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,17,23,0.10) 0%,
    rgba(13,17,23,0.80) 100%
  );
  z-index: 1;
}

/* Floating badge bottom-left */
.spotlight-float-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10,12,20,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 14px 20px;
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.sfb-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
  animation: heroPulse 2s ease infinite;
}

.sfb-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  line-height: 1;
  margin-bottom: 3px;
}

.sfb-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}

/* Floating stat chips */
.spotlight-chips {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-chip {
  background: rgba(10,12,20,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform 0.3s ease;
}

.sc-chip--1 { animation: badgeFloat 3.5s ease-in-out 0.4s infinite; }
.sc-chip--2 { animation: badgeFloat 3.2s ease-in-out 0.8s infinite; }

.sc-val {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.sc-chip--2 .sc-val { color: #10B981; }

.sc-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* ---- Content column ---- */
.spotlight-content {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.spotlight-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  margin: 16px 0 20px;
}

.sh-accent {
  background: linear-gradient(135deg, #F0CA7A 0%, #DFBC67 50%, #C4A044 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spotlight-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.54);
  line-height: 1.78;
  margin-bottom: 36px;
  max-width: 460px;
}

/* Metrics grid */
.spotlight-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
}

.sm-tile {
  background: rgba(255,255,255,0.03);
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: background 0.25s ease;
}

.sm-tile:hover { background: rgba(255,255,255,0.07); }

.sm-val {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.sm-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.spotlight-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.spotlight-ghost-btn {
  background: transparent;
  color: rgba(255,255,255,0.60);
  border: 1.5px solid rgba(255,255,255,0.14);
  box-shadow: none;
}

.spotlight-ghost-btn:hover {
  border-color: rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.90);
}

@media (max-width: 900px) {
  .spotlight-inner {
    grid-template-columns: 1fr;
  }
  .spotlight-img-col {
    height: 360px;
    position: relative;
  }
  .spotlight-img { position: absolute; }
  .spotlight-img-overlay {
    background: linear-gradient(to bottom, rgba(13,17,23,0.10) 0%, rgba(13,17,23,0.80) 100%);
  }
  .spotlight-content {
    padding: 48px 24px 56px;
  }
  .spotlight-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .spotlight-metrics { grid-template-columns: 1fr 1fr; }
  .spotlight-content { padding: 40px 20px 48px; }
  .spotlight-chips { top: 16px; right: 16px; }
  .spotlight-float-badge { bottom: 16px; left: 16px; }
}


/* =========================================================
   BUILDER STORY BAND
   ========================================================= */
.builder-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

/* ---- Image col ---- */
.bb-image-col {
  position: relative;
  overflow: hidden;
  order: 1;
}

.bb-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.builder-band:hover .bb-img { transform: scale(1.0); }

.bb-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(19,24,94,0.25) 0%,
    rgba(9,11,19,0.55) 100%
  );
  z-index: 1;
}

.bb-img-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
  background: rgba(9,11,19,0.72);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  letter-spacing: 0.03em;
}

/* ---- Content col ---- */
.bb-content {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  background: var(--color-bg-alt);
}

.bb-heading {
  color: var(--color-charcoal);
  margin-bottom: 20px;
}

.bb-sub {
  font-size: 0.97rem;
  color: var(--color-slate);
  line-height: 1.80;
  margin-bottom: 32px;
  max-width: 480px;
}

.bb-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
}

.bb-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-charcoal-md);
  line-height: 1.55;
  transition: padding-left 0.22s ease;
}

.bb-list li:first-child { border-top: 1px solid var(--color-border); }
.bb-list li:hover { padding-left: 5px; }

.bb-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(19,24,94,0.10);
  border: 1px solid rgba(19,24,94,0.20);
  color: var(--color-primary);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .builder-band {
    grid-template-columns: 1fr;
  }
  .bb-image-col {
    height: 340px;
    order: 1;
    position: relative;
  }
  .bb-img { position: absolute; }
  .bb-content {
    order: 2;
    padding: 48px 24px 56px;
  }
}

@media (max-width: 480px) {
  .bb-content { padding: 40px 20px 48px; }
}


/* =========================================================
   PARALLAX BANNER SECTION
   ========================================================= */
.parallax-banner {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pb-bg {
  position: absolute;
  inset: -20%;
  background-image: url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=1800&q=85');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

.pb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,15,30,0.92) 0%,
    rgba(10,15,30,0.80) 50%,
    rgba(19,24,94,0.25) 100%
  );
  z-index: 1;
}

.pb-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
  max-width: 820px;
}

.eyebrow-gold {
  color: #DFBC67 !important;
  background: rgba(223,188,103,0.12) !important;
  border: 1px solid rgba(223,188,103,0.30) !important;
}

.pb-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.pb-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 600px;
}

.pb-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.pb-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition);
}

.pb-badge:hover {
  background: rgba(19,24,94,0.15);
  border-color: rgba(19,24,94,0.4);
}

.pb-badge-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 4px;
}

.pb-badge-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 768px) {
  .parallax-banner { min-height: auto; }
  .pb-content { padding-top: 64px; padding-bottom: 64px; }
  .pb-badges { gap: 10px; }
  .pb-badge { padding: 12px 16px; min-width: 90px; }
  .pb-badge-num { font-size: 1.4rem; }
}


/* =========================================================
   HERO ENTRANCE ANIMATIONS (CSS-driven, no JS observer)
   ========================================================= */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-anim {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-anim-1 { animation-delay: 0.35s; }
.hero-anim-2 { animation-delay: 0.55s; }
.hero-anim-3 { animation-delay: 0.78s; }
.hero-anim-4 { animation-delay: 1.00s; }


/* =========================================================
   HERO FLOATING SHAPES
   ========================================================= */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  will-change: transform;
}

/*
  Each shape uses a WRAPPER div (.hero-shape) for JS scroll parallax,
  and the actual visual via ::before so CSS float animation is untouched.
*/
.hero-shape::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: inherit;
  background: inherit;
  animation: inherit;
  animation-play-state: inherit;
}

.hero-shape-1 {
  width: 300px; height: 300px;
  top: 8%; right: 6%;
  border: 2px solid rgba(19,24,94,0.30);
  background: rgba(19,24,94,0.07);
  border-radius: 4px;
  animation: floatA 9s ease-in-out infinite;
}
.hero-shape-2 {
  width: 160px; height: 160px;
  top: 52%; right: 20%;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  animation: floatB 12s ease-in-out infinite;
}
.hero-shape-3 {
  width: 90px; height: 90px;
  top: 18%; right: 34%;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  animation: floatC 7s ease-in-out infinite;
}
.hero-shape-4 {
  width: 260px; height: 4px;
  top: 72%; left: 4%;
  background: linear-gradient(90deg, rgba(19,24,94,0.6), transparent);
  border: none;
  border-radius: 2px;
  animation: floatD 10s ease-in-out infinite;
}
.hero-shape-5 {
  width: 70px; height: 70px;
  top: 38%; right: 4%;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  animation: floatA 14s ease-in-out infinite reverse;
}

@keyframes floatA {
  0%, 100% { transform: rotate(18deg) translateY(0px); }
  50%       { transform: rotate(22deg) translateY(-20px); }
}
@keyframes floatB {
  0%, 100% { transform: rotate(-12deg) translateY(0px); }
  50%       { transform: rotate(-7deg) translateY(-14px); }
}
@keyframes floatC {
  0%, 100% { transform: rotate(40deg) translateY(0px) scale(1); }
  50%       { transform: rotate(34deg) translateY(-24px) scale(1.05); }
}
@keyframes floatD {
  0%, 100% { transform: rotate(-5deg) scaleX(1); opacity: 0.8; }
  50%       { transform: rotate(-2deg) scaleX(1.1); opacity: 1; }
}

/* Hero parallax layer — JS drives transform + opacity */
.hero-content { will-change: transform, opacity; }


/* =========================================================
   HERO TEXT GRAIN / SHIMMER on heading
   ========================================================= */
@keyframes shimmerMove {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}


/* =========================================================
   VP CARD — 3D TILT (JS adds inline transform)
   ========================================================= */
.vp-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  /* transition is managed by JS — fast for tilt, slow for entrance */
  transition: box-shadow var(--transition), opacity 0.55s ease, transform 0.55s ease;
}

/* Spotlight glow follows mouse cursor */
.vp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(19,24,94,0.13) 0%, transparent 60%);
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}
.vp-card:hover::after { opacity: 1; }


/* =========================================================
   SVG CHART DRAW ANIMATION
   ========================================================= */
.chart-svg path[stroke="#DFBC67"] {
  stroke: var(--color-gold);
}

.chart-line-re {
  transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.chart-line-sp {
  transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}
.chart-line-bond {
  transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.chart-fill-re,
.chart-fill-sp {
  opacity: 0;
  transition: opacity 1s ease 0.8s;
}
.chart-fill-re.drawn,
.chart-fill-sp.drawn { opacity: 1; }


/* =========================================================
   SECTION DIVIDER GRADIENT
   ========================================================= */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  border: none;
  margin: 0;
}


/* =========================================================
   SECTION EYEBROW — pill + decorative lines
   ========================================================= */
.section-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 5px 16px !important;
  background: rgba(19,24,94,0.07) !important;
  border: 1px solid rgba(19,24,94,0.16) !important;
  border-radius: 30px !important;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  flex: 0 0 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.30;
}

.eyebrow-gold {
  background: rgba(223,188,103,0.12) !important;
  border-color: rgba(223,188,103,0.32) !important;
  color: #DFBC67 !important;
}


/* =========================================================
   BUTTONS — gradient, glow, ripple
   ========================================================= */
.btn { position: relative; overflow: hidden; transform: translateZ(0); }

.btn-primary {
  background: linear-gradient(135deg, #DFBC67 0%, #C4A044 100%) !important;
  color: #0D1248 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 22px rgba(223,188,103,0.42), inset 0 1px 0 rgba(255,255,255,0.20) !important;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F0CA7A 0%, #DFBC67 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 40px rgba(223,188,103,0.52), inset 0 1px 0 rgba(255,255,255,0.24) !important;
}

.btn-primary:active { transform: translateY(-1px) !important; }

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  pointer-events: none;
  animation: rippleAnim 0.65s ease-out forwards;
  transform: scale(0);
}

@keyframes rippleAnim {
  to { transform: scale(1); opacity: 0; }
}

.btn-outline-white:hover {
  transform: translateY(-2px) !important;
}


/* =========================================================
   STATS BAR — premium 4-column redesign
   ========================================================= */
.stats-bar {
  background: linear-gradient(160deg, #080c18 0%, #0e1223 100%) !important;
  padding: 80px 0 !important;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 100% at 20% 50%, rgba(19,24,94,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 100% at 80% 50%, rgba(223,188,103,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  border: none !important;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  background: transparent !important;
  padding: 40px 32px !important;
  transition: background 0.3s ease;
  position: relative;
  flex: 1 !important;
  border-right: 1px solid rgba(255,255,255,0.07) !important;
}

.stat-item:last-child { border-right: none !important; }

/* Gold top accent line — always visible, glows on hover */
.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(223,188,103,0.35), transparent);
  transition: background 0.4s ease, width 0.4s ease, box-shadow 0.4s ease;
  border-radius: 2px;
}

.stat-item:hover::before,
.stat-item.stat-animated::before {
  width: 72px;
  background: linear-gradient(90deg, transparent, #DFBC67, transparent);
  box-shadow: 0 0 12px rgba(223,188,103,0.4);
}

.stat-item:hover { background: rgba(255,255,255,0.03) !important; }

.stat-divider { display: none !important; }

/* Icon */
.stat-icon {
  display: block;
  font-size: 0.6rem;
  color: #DFBC67;
  opacity: 0.5;
  letter-spacing: 0.4em;
  margin-bottom: 18px;
  margin-top: 4px;
}

/* Number */
.stat-number {
  display: block;
  font-family: var(--font-serif) !important;
  font-size: clamp(2.6rem, 4vw, 3.8rem) !important;
  font-weight: 800 !important;
  color: #DFBC67 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0 !important;
  will-change: contents;
}

/* Sub-label (for the % stat) */
.stat-sublabel {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Primary label */
.stat-label {
  display: block;
  font-size: 0.70rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.30) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin-top: 10px !important;
}


/* =========================================================
   VALUE PROP CARDS — glass hover, animated icon
   ========================================================= */
.vp-card {
  border: 1px solid var(--color-border) !important;
  background: var(--color-white) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: box-shadow 0.35s ease,
              transform 0.35s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s ease !important;
}

.vp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(135deg, #13185E, #0D1248);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  border-radius: 3px 3px 0 0;
  z-index: 1;
}

.vp-card:hover::before { transform: scaleX(1); }

.vp-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(19,24,94,0.10) 0%, rgba(19,24,94,0.04) 100%) !important;
  border: 1px solid rgba(19,24,94,0.14) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
  color: #13185E !important;
  transition: background 0.3s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease !important;
  position: relative;
  z-index: 1;
}

.vp-card:hover .vp-icon {
  background: linear-gradient(135deg, rgba(19,24,94,0.18) 0%, rgba(19,24,94,0.08) 100%) !important;
  transform: scale(1.1) rotate(-5deg) !important;
  box-shadow: 0 6px 20px rgba(19,24,94,0.22) !important;
}

.vp-title, .vp-text, .vp-link { position: relative; z-index: 1; }

.vp-link {
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  color: #13185E !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: gap 0.22s ease !important;
}

.vp-link:hover { gap: 8px !important; }


/* =========================================================
   PORTFOLIO CARDS — clip-path reveal + hover lift
   ========================================================= */
.pcard {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s ease !important;
}

.pcard:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 28px 64px rgba(15,23,42,0.16) !important;
}

.pcard-img {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

.pcard-img.img-revealed {
  opacity: 1;
  transform: scale(1);
}

.pcard-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(9,11,19,0.45) 100%);
  pointer-events: none;
}

/* Badge polish */
.pcard-badge {
  font-size: 0.67rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  padding: 4px 12px !important;
  border-radius: 30px !important;
  backdrop-filter: blur(8px);
}

.pcard-badge--active {
  background: rgba(10,15,30,.82) !important;
  color: var(--color-gold,#DFBC67) !important;
  border: 1px solid rgba(223,188,103,.22) !important;
}

.pcard-badge--dev {
  background: rgba(19,24,94,.88) !important;
  color: #fff !important;
  border: 1px solid rgba(19,24,94,.5) !important;
}

.pcard-badge--renov {
  background: rgba(10,15,30,.82) !important;
  color: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
}


/* =========================================================
   PROCESS SECTION — JS-driven connector line
   ========================================================= */
.process-steps-line {
  position: absolute;
  top: 27px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: rgba(255,255,255,0.06);
  z-index: 2;
  pointer-events: none;
}

.process-steps-line-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #DFBC67, rgba(223,188,103,0.4));
  transition: width 1.6s cubic-bezier(0.22,1,0.36,1);
  border-radius: 2px;
}

.process-steps-line-fill.line-drawn { width: 100%; }

.process-steps::before { display: none !important; }

.process-section {
  --glow-x: 50%;
  --glow-y: 50%;
}

.process-section::before {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(19,24,94,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(19,24,94,0.06) 0%, transparent 45%),
    radial-gradient(350px at var(--glow-x) var(--glow-y), rgba(19,24,94,0.07), transparent) !important;
}


/* =========================================================
   PARALLAX BANNER — upgraded overlay + glow
   ========================================================= */
.pb-overlay {
  background:
    linear-gradient(135deg, rgba(9,11,19,0.95) 0%, rgba(9,11,19,0.78) 50%, rgba(130,10,15,0.42) 100%),
    linear-gradient(to top, rgba(9,11,19,0.60) 0%, transparent 55%) !important;
}

.parallax-banner {
  --glow-x: 50%;
  --glow-y: 50%;
}

.pb-badge {
  transition: all 0.28s ease !important;
}

.pb-badge:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.22) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}


/* =========================================================
   MARKET COMPARISON — list polish
   ========================================================= */
.market-section {
  background: var(--color-bg-alt);
  padding: 0;
}

.market-list {
  margin: 24px 0 32px !important;
}

.market-list li {
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--color-border) !important;
  transition: padding-left 0.25s ease !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
}

.market-list li:hover { padding-left: 6px !important; }

.market-list-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(19,24,94,0.10);
  border: 1px solid rgba(19,24,94,0.20);
  color: #13185E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}


/* =========================================================
   MARKETS CITY STRIP — hover polish
   ========================================================= */
.market-card-info {
  transform: translateY(8px);
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1);
}

.market-card:hover .market-card-info { transform: translateY(0); }

.market-city {
  font-size: 1.65rem !important;
}

.market-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(135deg, #13185E, #0D1248);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 3;
}

.market-card:hover::after { transform: scaleX(1); }


/* =========================================================
   ROUTING SECTION — pill polish and image background blocks
   ========================================================= */
/* pill.active box-shadow handled in the PILL ROUTING block below */

.pill-description-box {
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 4px 32px rgba(15,23,42,0.08) !important;
}

/* =========================================================
   PILL ROUTING — active state + focus
   ========================================================= */
.pill:focus-visible {
  outline: 2.5px solid var(--color-primary);
  outline-offset: 3px;
}

/* Active pill: navy bg, white text, gold icon accent */
.pill.active {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 22px rgba(19,24,94,0.30), 0 0 0 3px rgba(19,24,94,0.10) !important;
}

.pill.active .pill-icon {
  color: #DFBC67 !important;
}

/* Hover: navy outline + navy text (not active) */
.pill:not(.active):hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(19,24,94,0.04);
}

/* =========================================================
   ROUTING SECTION — subtle image background
   ========================================================= */
.routing-section {
  background-color: #F8FAFC;
  position: relative;
  overflow: hidden;
}

.routing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1400&q=20');
  background-size: cover;
  background-position: center top;
  opacity: 0.03;
  pointer-events: none;
}


/* =========================================================
   SECTION BOX SHADOWS
   ========================================================= */
.stats-bar { box-shadow: 0 8px 40px rgba(0,0,0,0.18); }
.parallax-banner { box-shadow: 0 8px 40px rgba(0,0,0,0.22); }


/* =========================================================
   HERO — cinematic upgrade
   ========================================================= */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4t5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dJoJ28YwAIG");
}

.hero-overlay {
  background:
    linear-gradient(to right, rgba(9,11,19,0.96) 0%, rgba(9,11,19,0.70) 55%, rgba(9,11,19,0.35) 100%),
    linear-gradient(to top,   rgba(9,11,19,0.65) 0%, transparent 50%) !important;
}

.hero-heading-accent {
  background: linear-gradient(135deg, #F0CA7A 0%, #DFBC67 50%, #C4A044 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-shape-1 {
  background: radial-gradient(circle, rgba(19,24,94,0.50), transparent 70%);
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(70px);
}
.hero-shape-2 {
  background: radial-gradient(circle, rgba(19,24,94,0.22), transparent 70%);
  width: 280px; height: 280px;
  border-radius: 50%;
  filter: blur(45px);
}
.hero-shape-3 {
  background: radial-gradient(circle, rgba(50,70,160,0.18), transparent 70%);
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-shape-4 {
  background: radial-gradient(circle, rgba(201,164,96,0.14), transparent 70%);
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(35px);
}
.hero-shape-5 {
  background: radial-gradient(circle, rgba(19,24,94,0.18), transparent 70%);
  width: 360px; height: 360px;
  border-radius: 50%;
  filter: blur(55px);
}

.hero-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 16px;
  border-radius: 30px;
  backdrop-filter: blur(6px);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: #DFBC67;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(223,188,103,0.28);
  animation: heroPulse 2s ease infinite;
  flex-shrink: 0;
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(223,188,103,0.28); }
  50%       { box-shadow: 0 0 0 7px rgba(223,188,103,0.0); }
}

.hero-heading {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.10 !important;
  letter-spacing: -0.025em;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.80;
  max-width: 560px;
  color: rgba(255,255,255,0.62);
}

/* Animated scroll indicator dots */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.scroll-dot {
  position: relative;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: scrollBounce 1.9s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40%            { opacity: 1;   transform: translateY(5px); }
}


/* =========================================================
   PCARD IMAGE HEIGHT UPGRADE
   ========================================================= */
.pcard-img {
  height: 220px !important;
}


/* =========================================================
   HERO BACKGROUND UPGRADE — more cinematic overlay
   ========================================================= */
.hero {
  background-position: center 35% !important;
}

.hero-overlay {
  background:
    linear-gradient(to right, rgba(9,11,19,0.97) 0%, rgba(9,11,19,0.72) 50%, rgba(9,11,19,0.40) 100%),
    linear-gradient(to top, rgba(9,11,19,0.70) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 50%, rgba(19,24,94,0.12) 0%, transparent 55%) !important;
}


/* =========================================================
   MARKET CARD — bigger height for better images
   ========================================================= */
.market-card {
  height: 420px !important;
}

@media (max-width: 768px) {
  .market-card { height: 340px !important; }
}


/* =========================================================
   PORTFOLIO SECTION — subtle background
   ========================================================= */
.portfolio-section {
  background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
}


/* =========================================================
   VALUE PROPS — subtle gradient
   ========================================================= */
.value-props {
  background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
  position: relative;
}

.value-props::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}


/* =========================================================
   HERO — more dramatic shapes, better visibility
   ========================================================= */
.hero-shape-1 {
  border: 2px solid rgba(223,188,103,0.18) !important;
  background: rgba(223,188,103,0.04) !important;
}
.hero-shape-3 {
  border: 1.5px solid rgba(223,188,103,0.22) !important;
  background: rgba(223,188,103,0.06) !important;
}
.hero-shape-5 {
  border: 1.5px solid rgba(223,188,103,0.15) !important;
}

/* Hero text: sharper text shadow for depth */
.hero-heading {
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}


/* =========================================================
   PARALLAX BANNER — deeper, more cinematic overlay
   ========================================================= */
.pb-bg {
  inset: -35% 0 !important;
}

.parallax-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7,11,20,0.7) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(7,11,20,0.5) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.pb-content { position: relative; z-index: 2; }


/* =========================================================
   SPOTLIGHT IMAGE — room to move
   ========================================================= */
.spotlight-img-col {
  overflow: hidden;
}
.spotlight-img {
  inset: -25% 0 !important;
  position: absolute !important;
  will-change: transform;
}


/* =========================================================
   BUILDER BAND — image room to move
   ========================================================= */
.bb-image-col {
  overflow: hidden;
}
.bb-img {
  inset: -25% 0 !important;
  will-change: transform;
}


/* Remove pseudo-element artifacts on dark sections */
.process-section::before,
.testimonials-section::before { display: none; }


/* =========================================================
   PORTFOLIO CARDS — taller image, better hover depth
   ========================================================= */
.pcard-img {
  height: 240px !important;
  border-radius: 0 !important;
}

.pcard {
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s ease !important;
}
.pcard:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.14) !important;
}


/* =========================================================
   VALUE PROPS — card hover lift
   ========================================================= */
.vp-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(19,24,94,0.10) !important;
}


/* =========================================================
   MARKET CARDS — taller for more parallax drama
   ========================================================= */
.market-card {
  height: 440px !important;
}
.market-card-img {
  inset: -20% 0 !important;
}


/* =========================================================
   MARKET CARDS — cleaner image overlay on hover
   ========================================================= */
.market-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,11,19,0.70) 0%, rgba(9,11,19,0.20) 50%, transparent 100%);
  transition: opacity 0.4s ease;
}
.market-card:hover .market-card-img::after {
  opacity: 0.8;
}


/* =========================================================
   PROCESS STEPS — number hover shows gold fill
   ========================================================= */
.process-step {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.process-step:hover { transform: translateY(-4px); }


/* =========================================================
   SPOTLIGHT METRICS TILES — gold value accent
   ========================================================= */
.sm-val { color: #DFBC67 !important; }
.sm-tile:hover .sm-val { color: #F0CA7A !important; }


/* =========================================================
   PARALLAX BANNER BADGES — gold accent numbers
   ========================================================= */
.pb-badge-num {
  color: #DFBC67 !important;
}


/* =========================================================
   RESPONSIVE — TABLET (<1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .vp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .market-container {
    gap: 40px;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE (<768px)
   ========================================================= */
@media (max-width: 768px) {
  /* Hero */
  .hero { background-attachment: scroll; }
  .hero-content { padding-top: 40px; padding-bottom: 80px; }

  /* Stats */
  .stats-grid { flex-direction: column; }
  .stat-divider { width: 60px; height: 1px; }
  .stat-item { padding: 20px 16px; }

  /* Routing */
  .routing-section { padding: 64px 0; }
  .pill-description-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Value props */
  .value-props { padding: 64px 0; }
  .vp-grid { grid-template-columns: 1fr; }

  /* Market */
  .market-section { padding: 0; }
  .market-container {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: unset;
  }
  .market-text {
    padding: 64px 24px;
  }
  .market-photo-area {
    min-height: 360px;
  }

  /* Stats upgrade responsive — 2×2 grid */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-item:nth-child(2) { border-right: none !important; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.07) !important; }
  .hero-heading { font-size: clamp(2rem, 8vw, 3.2rem) !important; }
  .process-steps-line { display: none !important; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .routing-pills { flex-direction: column; align-items: stretch; }
  .pill { justify-content: center; }

  .section-header { margin-bottom: 36px; }

  .stat-item { padding: 28px 20px !important; }
  .hero-eyebrow { font-size: 0.62rem; }
}


/* =========================================================
   3D PARALLAX SCENE — Module 36 support
   ========================================================= */

/* Hero: perspective container so child translateZ values create real depth */
.hero {
  perspective: 1600px;
  perspective-origin: 50% 42%;
  /* overflow must stay hidden so shapes don't bleed out */
  overflow: hidden;
}

/* Shapes layer rotates as one unit, shapes inside have individual Z positions */
.hero-shapes {
  transform-style: preserve-3d;
  /* will-change tells the GPU to composite this layer */
  will-change: transform;
  /* Smooth return when mouse leaves — JS overrides this during active move */
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Each shape needs preserve-3d so its own translateZ propagates */
.hero-shape {
  transform-style: preserve-3d;
  /* GPU layer promotion */
  will-change: transform;
  backface-visibility: hidden;
}

/* Parallax banner: perspective so .pb-bg rotation creates 3D illusion */
.parallax-banner {
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.pb-bg {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Stats items — 3D tilt target */
.stat-item {
  transform-style: preserve-3d;
  cursor: default;
}

/* Process steps — 3D tilt target */
.process-step {
  transform-style: preserve-3d;
}

/* Spotlight metric tiles — 3D tilt target */
.sm-tile {
  transform-style: preserve-3d;
}

/* Portfolio cards — 3D tilt target */
.pcard {
  transform-style: preserve-3d;
}

/* Prevent 3D tilt on mobile — no hover device */
@media (hover: none), (pointer: coarse) {
  .hero { perspective: none; }
  .hero-shapes { transform-style: flat; will-change: auto; }
  .hero-shape  { transform-style: flat; will-change: auto; }
  .parallax-banner { perspective: none; }
  .pb-bg { transform-style: flat; }
  .stat-item, .process-step, .sm-tile, .pcard { transform-style: flat; }
}


/* =========================================================
   MODULE 41 — scroll depth parallax targets
   GPU-promote only the elements that JS will animate each frame.
   ========================================================= */

/* Stats icon — drifts at a different rate than the number */
.stat-icon { will-change: transform; }

/* Process step numbers — Y-drift as section scrolls past */
.process-step-num { will-change: transform; }

/* Parallax banner badges — float over the moving .pb-bg layer */
.pb-badge { will-change: transform; }

/* Portfolio card badges — pop above card image */
.pcard-badge {
  will-change: transform;
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  z-index: 3;
}

/* Market city label — floats above each market card */
.market-city { will-change: transform; }

/* Builder band image label */
.bb-img-label { will-change: transform; }

/* Testimonial quote icon */
.testimonial-quote-icon { will-change: transform; }

/* Section entrance 3D — transform-origin so rotateX lifts from bottom */
.value-props-section,
.routing-section,
.portfolio-section,
.process-section,
.faq-section,
.builder-band {
  transform-origin: 50% 100%;
  will-change: transform;
}

@media (hover: none), (pointer: coarse) {
  /* Disable scroll parallax GPU promotion on touch devices */
  .stat-icon,
  .process-step-num,
  .pb-badge,
  .pcard-badge,
  .market-city,
  .bb-img-label,
  .testimonial-quote-icon {
    will-change: auto;
    transform: none !important;
  }
  /* No section entrance tilt on touch */
  .value-props-section, .routing-section, .portfolio-section,
  .process-section, .faq-section, .builder-band {
    will-change: auto;
    transform: none !important;
  }
}


/* =========================================================
   FIRST-PERSON SCENE CAMERA — Module 43 / SceneEngine CSS
   Fallback perspective values for section containers.
   SceneEngine overrides these at runtime with per-scene
   values (inline style), so these only matter when JS
   hasn't run yet (SSR, noscript).

   PERSPECTIVE values per scene "feel":
     480  px — Hyperdrive (parallax banner) — extreme drama
     700  px — Command Deck (stats bar)     — claustrophobic
     750  px — Gallery Corridor (spotlight) — immersive
     800  px — Interface Hub / Space Journey
     850  px — Construction Walk (builder)
     900  px — Flyover / Chamber / Gallery
     1400 px — Reading Library (FAQ)        — calm / spacious
   ========================================================= */

/* ── Perspective fallbacks (overridden inline by SceneEngine) ── */
.stats-bar          { perspective: 700px;  perspective-origin: 50% 50%; }
.routing-section    { perspective: 800px;  perspective-origin: 50% 48%; }
.spotlight-section  { perspective: 750px;  perspective-origin: 50% 50%; }
.process-section    { perspective: 800px;  perspective-origin: 50% 50%; }
.parallax-banner    { perspective: 480px !important; perspective-origin: 50% 50%; }
.market-section     { perspective: 900px;  perspective-origin: 50% 28%; }
.testimonials-section{ perspective: 900px; perspective-origin: 50% 48%; }
.builder-band       { perspective: 850px;  perspective-origin: 50% 54%; }
.faq-section        { perspective: 1400px; perspective-origin: 50% 46%; }

/* ── preserve-3d bridges: required when scene engine animates
      both a parent layer AND a child layer of the same element.
      Without this, translateZ on the child is flattened. ── */
.testimonial-card  { transform-style: preserve-3d; }
.process-step      { transform-style: preserve-3d; }

/* ── GPU-promote all scene-engine animated elements ── */
.stat-item,
.spotlight-inner,
.spotlight-float-badge,
.pb-content,
.bb-content,
.routing-pills,
.pill-description-box,
.process-step-num,
.market-card,
.testimonial-card,
.testimonial-quote-icon,
.faq-item {
  will-change: transform;
}

/* ── Disable ALL scene effects on touch / coarse pointer.
      perspective:none prevents GPU layer creation on mobile.
      transform:none !important resets any inline styles that
      may have been applied before the media-query kicks in. ── */
@media (hover: none), (pointer: coarse) {
  .stats-bar,
  .routing-section,
  .spotlight-section,
  .process-section,
  .parallax-banner,
  .market-section,
  .testimonials-section,
  .builder-band,
  .faq-section {
    perspective: none !important;
  }

  .stat-item,
  .spotlight-inner,
  .spotlight-float-badge,
  .pb-content,
  .bb-content,
  .routing-pills,
  .pill-description-box,
  .process-step-num,
  .market-card,
  .testimonial-card,
  .testimonial-quote-icon,
  .faq-item {
    will-change: auto;
    transform:   none !important;
  }

  .testimonial-card,
  .process-step {
    transform-style: flat;
  }
}
