.problem-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center bottom;
}

.problem-card.active-view {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.problem-card:not(.active-view) {
  transform: translateY(30px) scale(0.95);
  opacity: 0;
}

.problem-card:hover {
  box-shadow: 0 20px 40px -10px rgba(188, 160, 106, 0.3);
  border-color: rgba(188, 160, 106, 0.6);
  transform: translateY(-5px);
}

.problem-card-icon {
  transition: transform 0.5s ease;
}

.problem-card:hover .problem-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.interactive-points li,
.interactive-points div {
  transition: all 0.3s ease;
  cursor: default;
}

.interactive-points li:hover,
.interactive-points div:hover {
  background-color: rgba(188, 160, 106, 0.15);
  transform: translateX(5px);
}

.interactive-points li:hover .icon-svg {
  transform: scale(1.2) rotate(12deg);
  filter: drop-shadow(0 0 8px rgba(188, 160, 106, 0.6));
}

.icon-svg {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #bca06a 0%, #e8ba60 50%, #bca06a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(188, 160, 106, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
  background: rgba(188, 160, 106, 0.1);
  border-color: rgba(188, 160, 106, 0.4);
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(188, 160, 106, 0.15);
}

.floating-1 {
  animation: float 6s ease-in-out infinite;
}
.floating-2 {
  animation: float 7s ease-in-out infinite 1s;
}
.floating-3 {
  animation: float 8s ease-in-out infinite 2s;
}
.floating-4 {
  animation: float 9s ease-in-out infinite 0.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.parallax-bg {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.grain-overlay::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  animation: grain 8s steps(10) infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -2%);
  }
  30% {
    transform: translate(2%, -4%);
  }
  50% {
    transform: translate(-4%, 2%);
  }
  70% {
    transform: translate(4%, 4%);
  }
  90% {
    transform: translate(-2%, 2%);
  }
}

.mouse-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(188, 160, 106, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s;
}

.cta-heading {
  color: #ffffff;
}

.cta-secondary-btn {
  color: #ffffff;
}

.cta-grid-bg {
  background-image:
    linear-gradient(rgba(188, 160, 106, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 160, 106, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: ctaGridPulse 8s ease-in-out infinite;
}

@keyframes ctaGridPulse {
  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.cta-orb {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.cta-orb-a {
  animation: ctaOrbA 14s ease-in-out infinite alternate;
  background: radial-gradient(
    circle,
    rgba(188, 160, 106, 0.18) 0%,
    rgba(188, 160, 106, 0.04) 55%,
    transparent 75%
  );
}

.cta-orb-b {
  animation: ctaOrbB 18s ease-in-out infinite alternate;
  background: radial-gradient(
    circle,
    rgba(188, 160, 106, 0.12) 0%,
    rgba(80, 50, 10, 0.05) 55%,
    transparent 75%
  );
}

.cta-orb-c {
  animation: ctaOrbC 11s ease-in-out infinite alternate;
  background: radial-gradient(circle, rgba(188, 160, 106, 0.08) 0%, transparent 70%);
}

@keyframes ctaOrbA {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-40px, 30px) scale(1.12);
  }
}

@keyframes ctaOrbB {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, -40px) scale(1.08);
  }
}

@keyframes ctaOrbC {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.cta-beam-ray {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(188, 160, 106, 0.04) 48%,
    rgba(188, 160, 106, 0.09) 50%,
    rgba(188, 160, 106, 0.04) 52%,
    transparent 60%
  );
  animation: ctaBeamSweep 9s ease-in-out infinite;
}

@keyframes ctaBeamSweep {
  0% {
    transform: translateX(-10%);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(230%);
    opacity: 0;
  }
}

.cta-geo-hex {
  animation: ctaGeoSpin 60s linear infinite;
  transform-origin: center;
}

.cta-geo-diamond {
  animation: ctaGeoSpin 80s linear infinite reverse;
  transform-origin: center;
}

.cta-spin-slow {
  animation: ctaGeoSpin 30s linear infinite;
}

@keyframes ctaGeoSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

:root.light .cta-heading {
  color: #110d0a;
}

:root.light .cta-secondary-btn {
  color: #D9B164;
}

:root.light .cta-grid-bg {
  background-image:
    linear-gradient(rgba(188, 160, 106, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 160, 106, 0.04) 1px, transparent 1px);
}

:root.light .cta-orb-a {
  background: radial-gradient(
    circle,
    rgba(188, 160, 106, 0.06) 0%,
    rgba(188, 160, 106, 0.01) 50%,
    transparent 75%
  );
}

:root.light .cta-orb-b {
  background: radial-gradient(circle, rgba(188, 160, 106, 0.04) 0%, transparent 75%);
}

:root.light .cta-orb-c {
  background: radial-gradient(circle, rgba(188, 160, 106, 0.03) 0%, transparent 70%);
}

:root.light .cta-beam-ray {
  opacity: 0;
  animation: none;
}

:root.light .cta-geo-hex,
:root.light .cta-geo-diamond {
  opacity: 0.04;
}

:root.light .cta-geo-ring {
  opacity: 0.05;
}

:root.light #contact .bg-gray-800 {
  background-color: rgba(188, 160, 106, 0.15);
}

:root.light #cta-particles {
  opacity: 0.15;
}

.footer-orb {
  animation: ftOrbPulse 14s ease-in-out infinite alternate;
}

.footer-orb-l {
  animation-duration: 19s;
  animation-delay: -5s;
}

.footer-orb-r {
  animation-duration: 22s;
  animation-delay: -11s;
}

@keyframes ftOrbPulse {
  0% {
    transform: scale(1) translateY(0px);
  }

  50% {
    transform: scale(1.08) translateY(-18px);
  }

  100% {
    transform: scale(0.95) translateY(10px);
  }
}

.footer-orb-main {
  animation-name: ftOrbMain;
}

@keyframes ftOrbMain {
  0% {
    transform: translateX(-50%) scale(1) translateY(0px);
  }

  50% {
    transform: translateX(-50%) scale(1.06) translateY(-20px);
  }

  100% {
    transform: translateX(-50%) scale(0.97) translateY(8px);
  }
}

.footer-shield {
  animation: ftShieldSpin 120s linear infinite;
  transform-origin: center;
}

:root.light .footer-shield {
  opacity: 0.045;
}

@keyframes ftShieldSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.footer-topline {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(188, 160, 106, 0.5) 25%,
    rgba(188, 160, 106, 0.85) 50%,
    rgba(188, 160, 106, 0.5) 75%,
    transparent 100%
  );
}

:root.light .footer-topline {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(156, 128, 76, 0.4) 25%,
    rgba(156, 128, 76, 0.7) 50%,
    rgba(156, 128, 76, 0.4) 75%,
    transparent 100%
  );
}

:root.light .footer-orb-main {
  background: radial-gradient(
    circle,
    rgba(188, 160, 106, 0.11) 0%,
    rgba(188, 160, 106, 0.03) 45%,
    transparent 70%
  ) !important;
}

:root.light .footer-orb-l,
:root.light .footer-orb-r {
  background: radial-gradient(circle, rgba(188, 160, 106, 0.06) 0%, transparent 70%) !important;
}

:root.light #footer-aurora {
  opacity: 0.2;
}

.footer-ember {
  position: absolute;
  border-radius: 50%;
  background: rgba(188, 160, 106, 0.7);
  box-shadow: 0 0 6px 2px rgba(188, 160, 106, 0.4);
  animation: ftEmberRise linear infinite;
  pointer-events: none;
}

:root.light .footer-ember {
  background: rgba(156, 128, 76, 0.5);
  box-shadow: 0 0 4px 1px rgba(156, 128, 76, 0.3);
}

@keyframes ftEmberRise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-320px) translateX(var(--drift)) scale(0.3);
    opacity: 0;
  }
}

/* ============================================================
   PROBLEMS WE SOLVE — v3 (hp- namespace)
   Full replacement for the v2 "hp-" block in src/css/challengesweslove.css.
   Goals vs v2:
   - Wider usable width / tighter left-right gutters on large screens
   - Brighter, clearer photography (lighter overlay, more saturation)
   - Bigger, more legible card copy
   - Layered motion: staggered reveal, hover tilt, filter transitions,
     animated filter-chip indicator, animated counters
   - Full responsiveness: 360px phones up to 1920px+ desktops
   - prefers-reduced-motion respected everywhere
============================================================= */

:root {
  --hp-gold: #bca06a;
  --hp-gold-soft: rgba(188, 160, 106, 0.35);
  --hp-gold-bright: #e4c98e;
  --hp-ink: #05070c;
}

/* ---------- Section shell: tighter gutters, wider ceiling ---------- */
.hp-section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.hp-container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3.2vw, 3.5rem);
}

/* ---------- Reveal-on-scroll (staggered, with blur-in) ---------- */
.hp-reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}
.hp-reveal.hp-in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .hp-reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Header ---------- */
.hp-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hp-eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--hp-gold));
}
.hp-eyebrow::after {
  content: "";
  width: 28px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--hp-gold), transparent);
}

/* ---------- Stat strip: interactive, ring-animated, expandable ---------- */
.hp-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1.1rem clamp(1rem, 3vw, 2rem);
  background: rgba(10, 8, 7, 0.8);
  border: 1px solid rgba(188, 160, 106, 0.2);
  border-top: 2px solid rgba(188, 160, 106, 0.5);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 66rem;
  margin: 0 auto 0.85rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -2px 12px -2px rgba(197, 172, 125, 0.15), inset 0 1px 0 rgba(197, 172, 125, 0.08), 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.hp-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 15% -10%, rgba(188,160,106,0.14), transparent 55%);
  pointer-events: none;
}

/* each stat is now a real button: hoverable, focusable, expandable */
.hp-stat {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  min-width: 168px;
  flex: 1 1 200px;
  position: relative;
  padding: 1.1rem 1rem 1.25rem;
  border-radius: 1.25rem;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.hp-stat:hover,
.hp-stat:focus-visible {
  transform: translateY(-4px);
  background: rgba(188, 160, 106, 0.07);
  border-color: rgba(188, 160, 106, 0.3);
  box-shadow: 0 18px 34px -16px rgba(188, 160, 106, 0.45);
}
.hp-stat:focus-visible { outline: 2px solid var(--hp-gold-bright); outline-offset: 3px; }
.hp-stat:active { transform: translateY(-1px) scale(0.98); }

/* ring wraps the number so the percentage visibly "fills in" as it counts */
.hp-stat-ring-wrap {
  position: relative;
  width: clamp(84px, 8vw, 108px);
  height: clamp(84px, 8vw, 108px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-stat-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hp-stat-ring-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6; }
.hp-stat-ring-fill {
  fill: none;
  stroke: url(#hpRingGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 251.2; /* 2 * PI * 40 */
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(188,160,106,0.55));
}
.hp-stat:hover .hp-stat-ring-fill { filter: drop-shadow(0 0 10px rgba(188,160,106,0.8)); }

.hp-stat-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-gold);
  opacity: 0.9;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.hp-stat-icon svg { width: 22px; height: 22px; }
.hp-stat:hover .hp-stat-icon { transform: scale(1.15) rotate(-6deg); }

.hp-stat-content-stacked {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.hp-stat-content-stacked svg {
  width: 24px;
  height: 24px;
  color: var(--hp-gold-bright);
  filter: drop-shadow(0 2px 6px rgba(188, 160, 106, 0.4));
  transition: transform 0.35s ease, color 0.35s ease;
}
.hp-stat:hover .hp-stat-content-stacked svg {
  transform: scale(1.18) translateY(-1px);
  color: #ffffff;
}

.hp-stat-value {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--hp-gold) 0%, var(--hp-gold-bright) 50%, var(--hp-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.hp-stat-text { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
.hp-stat-label { font-size: 0.86rem; font-weight: 700; color: #d7dae0; max-width: 15rem; line-height: 1.4; }

.hp-stat-chevron {
  width: 14px; height: 14px; color: var(--hp-gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.65;
}
.hp-stat[aria-expanded="true"] .hp-stat-chevron { transform: rotate(180deg); opacity: 1; }

.hp-stat-detail {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.22,1,0.36,1), margin-top 0.4s ease;
  width: 100%;
}
.hp-stat[aria-expanded="true"] .hp-stat-detail { grid-template-rows: 1fr; margin-top: 0.35rem; }
.hp-stat-detail > * { min-height: 0; }
.hp-stat-detail p {
  font-size: 0.78rem;
  font-weight: 500;
  color: #9aa0ab;
  line-height: 1.55;
  max-width: 15.5rem;
  margin-inline: auto;
}

.hp-stat-divider { width: 1px; align-self: stretch; margin-block: 0.5rem; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.18), transparent); }
@media (max-width: 780px) { .hp-stat-divider { display: none; } }
.hp-stats-source { text-align: center; font-size: 0.82rem; color: #6b7280; margin-bottom: 2.25rem; }

/* light theme */
:root.light .hp-stat:hover, :root.light .hp-stat:focus-visible { background: rgba(188,160,106,0.08); }
:root.light .hp-stat-label { color: #3f434b; }
:root.light .hp-stat-detail p { color: #6b7280; }
:root.light .hp-stat-ring-track { stroke: rgba(0,0,0,0.08); }

/* ---------- Filter chips + animated indicator ---------- */
.hp-filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 3rem;
}
.hp-filter-chip {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.65rem 1.35rem;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.hp-filter-chip:hover { color: var(--hp-gold-bright); border-color: var(--hp-gold-soft); transform: translateY(-1px); }
.hp-filter-chip.is-active {
  font-weight: 900;
  color: #16130c;
  background: linear-gradient(135deg, var(--hp-gold-bright), var(--hp-gold));
  border-color: transparent;
  box-shadow: 0 8px 22px -6px rgba(188, 160, 106, 0.55);
}
.hp-filter-chip:active { transform: scale(0.96); }
.hp-filter-chip:focus-visible {
  outline: 2px solid var(--hp-gold-bright);
  outline-offset: 2px;
}

/* ---------- Card grid: reclaim width, add a 4th column on very wide screens ---------- */
.hp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  transition: opacity 0.25s ease;
}
.hp-grid.hp-filtering { opacity: 0.35; }
@media (min-width: 640px)  { .hp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1536px) { .hp-grid { grid-template-columns: repeat(4, 1fr); } }

/* @media (min-width: 640px)  { .hp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hp-grid { grid-template-columns: repeat(3, 1fr); } } */

.hp-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.45s ease;
  isolation: isolate;
  transform-style: preserve-3d;
  perspective: 900px;
}
.hp-card.hp-filtered-out { display: none; }
.hp-card.hp-just-shown {
  animation: hpCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes hpCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hp-card:hover {
  border-color: rgba(188, 160, 106, 0.55);
  box-shadow: 0 30px 60px -22px rgba(188, 160, 106, 0.45);
}

/* shine sweep on hover */
.hp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.1) 48%, rgba(255, 255, 255, 0.1) 52%, transparent 60%);
  background-size: 250% 250%;
  background-position: -100% -100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.hp-card:hover::after { opacity: 1; animation: hpShine 1.1s ease forwards; }
@keyframes hpShine {
  from { background-position: -60% -60%; }
  to   { background-position: 160% 160%; }
}

/* ---------- Media: brighter, more visible photography ---------- */
.hp-card-media {
  position: relative;
  height: clamp(168px, 18vw, 216px);
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
  background: #1f2937;
  flex-shrink: 0;
}
.hp-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  filter: saturate(1.08) contrast(1.05) brightness(1.06);
}
.hp-card.hp-in-view .hp-card-media img { transform: scale(1); }
.hp-card:hover .hp-card-media img { transform: scale(1.075); filter: saturate(1.18) contrast(1.08) brightness(1.1); }

/* lighter overlay: image reads clearly, text at bottom still legible */
.hp-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.05) 0%, rgba(5, 7, 12, 0.18) 55%, rgba(5, 7, 12, 0.72) 100%);
}
.hp-card-media-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(188,160,106,0.16), transparent 60%);
  mix-blend-mode: overlay;
  opacity: 0.9;
}
.hp-card-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #16130c;
  background: linear-gradient(135deg, var(--hp-gold-bright), var(--hp-gold));
  padding: 0.22rem 0.7rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Floating icon chip */
.hp-card-icon-chip {
  position: absolute;
  top: clamp(140px, 15.5vw, 188px);
  right: 18px;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: #12100c;
  border: 2px solid #D9B164;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hp-card-icon-chip::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 1px solid rgba(217, 177, 100, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hp-card-icon-chip svg { width: 21px; height: 21px; color: #D9B164 !important; }
.hp-card:hover .hp-card-icon-chip { transform: rotate(-8deg) scale(1.12); }
.hp-card:hover .hp-card-icon-chip::before { opacity: 1; transform: scale(1.15); }

/* ---------- Body copy: bigger, clearer ---------- */
.hp-card-body { padding: 2rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.hp-card-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #D9B164 !important;
  margin-bottom: 0.5rem;
}
.hp-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.3;
  margin-bottom: 0.55rem;
}
.hp-card-body p { font-size: 0.88rem; color: #c3c8d1; font-weight: 500; line-height: 1.6; margin-bottom: 1.1rem; }

.hp-card-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: #D9B164 !important; background: none; border: none; padding: 0.25rem 0;
  cursor: pointer; width: fit-content; margin-top: auto; overflow: hidden;
}
.hp-card-toggle:hover { color: #E2AB5B !important; }
.hp-card-toggle:focus-visible { outline: 2px solid var(--hp-gold-bright); outline-offset: 3px; }
.hp-chevron { width: 14px; height: 14px; transition: transform 0.3s ease; }
.hp-card-toggle[aria-expanded="true"] .hp-chevron { transform: rotate(180deg); }

.hp-card-detail { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 0.4s cubic-bezier(0.22,1,0.36,1), margin-top 0.4s ease; }
.hp-card-detail > * { min-height: 0; }
.hp-card-toggle[aria-expanded="true"] + .hp-card-detail { grid-template-rows: 1fr; margin-top: 0.85rem; }
.hp-card-detail ul { overflow: hidden; }
.hp-card-detail li {
  font-size: 0.8rem; font-weight: 600; color: #dfe2e8; padding: 0.28rem 0 0.28rem 1rem; position: relative;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hp-card-toggle[aria-expanded="true"] + .hp-card-detail li { opacity: 1; transform: translateX(0); }
.hp-card-detail li:nth-child(1) { transition-delay: 0.03s; }
.hp-card-detail li:nth-child(2) { transition-delay: 0.08s; }
.hp-card-detail li:nth-child(3) { transition-delay: 0.13s; }
.hp-card-detail li:nth-child(4) { transition-delay: 0.18s; }
.hp-card-detail li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 5px; height: 5px; border-radius: 50%; background: var(--hp-gold); }

/* ripple on toggle click */
.hp-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(188, 160, 106, 0.35);
  transform: scale(0);
  animation: hpRipple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes hpRipple { to { transform: scale(3); opacity: 0; } }

.hp-empty-state {
  text-align: center;
  color: #9ca3af;
  font-weight: 600;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}

/* ---------- Real-cost bar: interactive + animated ---------- */
.hp-costbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.75rem; padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  /* NOTE: intentionally NOT overflow:hidden here — that used to clip the
     item tooltips whenever they popped up above the bar. The sheen effect
     below clips itself via its own border-radius instead. */
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
.hp-costbar::before {
  /* slow ambient sheen sweeping across the bar — self-clipped so the
     parent doesn't need overflow:hidden (which would cut off tooltips) */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(100deg, transparent 30%, rgba(188,160,106,0.06) 48%, rgba(188,160,106,0.1) 50%, rgba(188,160,106,0.06) 52%, transparent 70%);
  background-size: 260% 260%;
  background-position: -30% -30%;
  animation: hpCostbarSheen 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes hpCostbarSheen {
  0%, 100% { background-position: -30% -30%; }
  50% { background-position: 130% 130%; }
}
.hp-costbar:hover {
  border-color: rgba(188, 160, 106, 0.5);
  box-shadow: 0 24px 50px -26px rgba(188, 160, 106, 0.4);
}

.hp-costbar-lead { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; position: relative; z-index: 1; }

/* beacon-pulse badge */
.hp-costbar-badge {
  position: relative;
  width: 50px; height: 50px; border-radius: 9999px;
  background: linear-gradient(135deg, #1c1712, #0c0a08);
  border: 1px solid rgba(188,160,106,0.4);
  color: var(--hp-gold-bright);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.35s ease;
}
.hp-costbar-badge::before,
.hp-costbar-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1.5px solid rgba(188, 160, 106, 0.55);
  opacity: 0;
  animation: hpBeaconPing 2.6s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}
.hp-costbar-badge::after { animation-delay: 1.3s; }
@keyframes hpBeaconPing {
  0%   { transform: scale(1); opacity: 0.65; }
  80%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.hp-costbar-badge svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.hp-costbar-eyebrow { display: block; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--hp-gold); margin-bottom: 0.2rem; }
.hp-costbar-title { color: #f9fafb; font-weight: 800; font-size: 1.25rem; }

.hp-costbar-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.75rem; flex: 1; position: relative; z-index: 1; }
@media (min-width: 768px) { .hp-costbar-items { grid-template-columns: repeat(4, 1fr); } }

/* individual items: hover lift, icon spin, underline sweep, accessible tooltip */
.hp-costbar-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem;
  color: #f3f4f6; font-size: 0.95rem; font-weight: 700;
  padding: 0.75rem 0.6rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  transition:
    opacity 0.55s cubic-bezier(0.22,1,0.36,1),
    transform 0.4s cubic-bezier(0.22,1,0.36,1),
    background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.hp-costbar.hp-in-view .hp-costbar-item { opacity: 1; transform: translateY(0) scale(1); }
.hp-costbar.hp-in-view .hp-costbar-item:nth-child(1) { transition-delay: 0.05s; }
.hp-costbar.hp-in-view .hp-costbar-item:nth-child(2) { transition-delay: 0.14s; }
.hp-costbar.hp-in-view .hp-costbar-item:nth-child(3) { transition-delay: 0.23s; }
.hp-costbar.hp-in-view .hp-costbar-item:nth-child(4) { transition-delay: 0.32s; }
.hp-costbar-item:hover,
.hp-costbar-item:focus-visible {
  background: rgba(188, 160, 106, 0.16);
  border-color: rgba(188, 160, 106, 0.4);
  color: #ffffff;
  transform: translateY(-4px) scale(1);
}
.hp-costbar-item:focus-visible { outline: 2px solid var(--hp-gold-bright); outline-offset: 2px; }
.hp-costbar-item svg {
  width: 42px;
  height: 42px;
  color: var(--hp-gold);
  filter: drop-shadow(0 4px 10px rgba(188, 160, 106, 0.35));
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), color 0.3s ease, filter 0.3s ease;
}
.hp-costbar-item:hover svg, .hp-costbar-item:focus-visible svg {
  transform: scale(1.22) rotate(-8deg);
  color: var(--hp-gold-bright);
  filter: drop-shadow(0 6px 18px rgba(188, 160, 106, 0.65));
}

/* underline sweep beneath the label */
.hp-costbar-item-label { position: relative; font-weight: 700; }
.hp-costbar-item-label::after {
  content: "";
  position: absolute; left: 50%; bottom: -3px; height: 2px; width: 0;
  background: var(--hp-gold-bright);
  transition: width 0.35s ease, left 0.35s ease;
}
.hp-costbar-item:hover .hp-costbar-item-label::after,
.hp-costbar-item:focus-visible .hp-costbar-item-label::after { width: 100%; left: 0; }

/* accessible tooltip */
.hp-cost-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 6px);
  width: max-content;
  max-width: 16rem;
  background: rgba(18, 16, 12, 0.98);
  border: 1.5px solid rgba(188, 160, 106, 0.7);
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px -6px rgba(0,0,0,0.9), 0 0 20px rgba(188,160,106,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
}
.hp-cost-tooltip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(188, 160, 106, 0.85);
}
.hp-costbar-item:hover .hp-cost-tooltip,
.hp-costbar-item:focus-visible .hp-cost-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 767px) {
  .hp-cost-tooltip { display: none; } /* avoid awkward overlap on narrow grids */
}

.hp-costbar-cta-wrap { flex-shrink: 0; text-align: center; position: relative; z-index: 1; }
.hp-costbar-cta-wrap p { color: #f9fafb; font-weight: 800; font-size: 1.1rem; line-height: 1.35; margin-bottom: 0.45rem; }
.hp-costbar-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--hp-gold); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.hp-costbar-cta::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--hp-gold), var(--hp-gold-bright));
  transition: right 0.35s cubic-bezier(0.22,1,0.36,1);
}
.hp-costbar-cta:hover::after { right: 0; }
.hp-costbar-cta svg { width: 15px; height: 15px; transition: transform 0.3s ease; animation: hpArrowNudge 2.6s ease-in-out infinite; }
.hp-costbar-cta:hover { color: var(--hp-gold-bright); }
.hp-costbar-cta:hover svg { animation-play-state: paused; transform: translateX(5px); }
@keyframes hpArrowNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .hp-costbar::before,
  .hp-costbar-badge::before,
  .hp-costbar-badge::after,
  .hp-costbar-cta svg { animation: none; }
  .hp-costbar-item { opacity: 1; transform: none; transition: none; }
}

/* ---------- Light theme ---------- */
:root.light .hp-stats, :root.light .hp-costbar { background: #f9fafb; border-color: rgba(0,0,0,0.07); }
:root.light .hp-card { background: #ffffff; border-color: rgba(0,0,0,0.07); }
:root.light .hp-card-media-overlay { background: linear-gradient(180deg, rgba(5,7,12,0.02) 0%, rgba(5,7,12,0.08) 55%, rgba(5,7,12,0.55) 100%); }
:root.light .hp-card-body h3 { color: #1a1a1a; }
:root.light .hp-card-body p { color: #5c5c5c; }
:root.light .hp-card-detail li { color: #3f3f3f; }
:root.light .hp-stat-label { color: #6b7280; }
:root.light .hp-filter-chip {
  font-size: 0.85rem;
  font-weight: 900;
  color: #334155;
  background: #F1F5F9;
  border-color: #CBD5E1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}
:root.light .hp-filter-chip:hover {
  color: #B3721A;
  background: #FAF0D9;
  border-color: rgba(217, 177, 100, 0.4);
}
:root.light .hp-filter-chip.is-active {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #E5982A 0%, #D9B164 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(217, 177, 100, 0.45) !important;
}
:root.light .hp-costbar-title, :root.light .hp-costbar-cta-wrap p { color: #1a1a1a; }
:root.light .hp-costbar-item { color: #4b5563; }
:root.light .hp-card-icon-chip { background: #ffffff; border-color: #D9B164 !important; }

/* ---------- Fine responsive tuning ---------- */
@media (max-width: 380px) {
  .hp-card-body { padding: 1.6rem 1.1rem 1.25rem; }
  .hp-stats { padding: 1.25rem 1.1rem; }
}



/* ============================================================
   Image Lightbox Modal Styles
   ============================================================ */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  background-color: rgba(5, 7, 12, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.lightbox-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100010;
}

.lightbox-close-btn:hover {
  background-color: rgba(217, 177, 100, 0.2);
  color: #D9B164;
  border-color: rgba(217, 177, 100, 0.5);
  box-shadow: 0 0 15px rgba(217, 177, 100, 0.3);
  transform: scale(1.05);
}

.lightbox-close-btn:active {
  transform: scale(0.95);
}

.lightbox-close-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.lightbox-content {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lightbox-image-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(217, 177, 100, 0.15);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
  cursor: zoom-in;
  will-change: transform;
}

.lightbox-modal.is-open .lightbox-image:not(.is-zoomed) {
  transform: scale(1);
}

.lightbox-image.is-zoomed {
  cursor: grab;
}

.lightbox-image.is-dragging {
  cursor: grabbing;
}

/* Lightbox Controls Toolbar */
.lightbox-toolbar {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100020;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.is-open .lightbox-toolbar {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.lightbox-tool-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-tool-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #D9B164;
}

.lightbox-tool-btn:active {
  transform: scale(0.9);
}

.lightbox-tool-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox-zoom-level {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 3.25rem;
  text-align: center;
  user-select: none;
  font-variant-numeric: tabular-nums;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lightbox-divider {
  width: 1px;
  height: 1.5rem;
  background-color: rgba(255, 255, 255, 0.15);
}

.hp-card-media {
  cursor: zoom-in !important;
}

/* ============================================================
   RESPONSIVE CARD DIMENSIONS (INDUSTRY DATA SOURCE CARDS)
============================================================= */
.industry-data-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  height: auto;
  min-height: auto;
  padding: 32px 24px;
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease, 
              background 0.4s ease;
}

/* Ambient Radial Background Glow Effect on Hover */
.industry-data-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at center, rgba(217, 177, 100, 0.35) 0%, rgba(217, 177, 100, 0.1) 45%, transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

.industry-data-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #D9B164 !important;
  box-shadow: 0 0 50px rgba(217, 177, 100, 0.4), 0 20px 45px rgba(0, 0, 0, 0.6) !important;
}

.industry-data-card:hover::before {
  opacity: 1;
  transform: scale(1.1);
}

.industry-data-card:hover .industry-card-icon-box {
  border-color: #D9B164 !important;
  box-shadow: 0 0 25px rgba(217, 177, 100, 0.5) !important;
  transform: scale(1.06);
}

.industry-data-card:hover .industry-card-inner-box {
  border-color: rgba(217, 177, 100, 0.5) !important;
  box-shadow: inset 0 0 20px rgba(217, 177, 100, 0.12), 0 0 15px rgba(217, 177, 100, 0.1) !important;
}

.industry-data-card:hover .industry-card-footer-box {
  border-color: rgba(217, 177, 100, 0.6) !important;
  box-shadow: 0 0 20px rgba(217, 177, 100, 0.25) !important;
}

.industry-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.industry-card-icon svg {
  width: 40px;
  height: 40px;
  transition: transform 0.4s ease;
}

.industry-data-card:hover .industry-card-icon {
  transform: scale(1.1) rotate(4deg);
}

.industry-card-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Ultra-Wide (≥ 1536px) */
@media (min-width: 1536px) {
  .industry-data-card {
    width: 100%;
    max-width: 430px;
    padding: 36px 28px;
  }

  .industry-card-icon {
    width: 72px;
    height: 72px;
  }

  .industry-card-icon svg {
    width: 46px;
    height: 46px;
  }

  .industry-card-title {
    font-size: 1.20rem;
  }
}

/* Large Desktop (1280px – 1535px) */
@media (min-width: 1280px) and (max-width: 1535px) {
  .industry-data-card {
    width: 100%;
    max-width: 415px;
    padding: 32px 24px;
  }

  .industry-card-icon {
    width: 70px;
    height: 70px;
  }

  .industry-card-icon svg {
    width: 44px;
    height: 44px;
  }

  .industry-card-title {
    font-size: 1.15rem;
  }
}

/* Standard Laptop (1024px – 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .industry-data-card {
    width: 100%;
    max-width: 380px;
    padding: 28px 20px;
  }

  .industry-card-icon {
    width: 64px;
    height: 64px;
  }

  .industry-card-icon svg {
    width: 40px;
    height: 40px;
  }

  .industry-card-title {
    font-size: 1.00rem;
  }
}

/* Tablet (641px – 1023px) */
@media (min-width: 641px) and (max-width: 1023px) {
  .industry-data-card {
    width: 100%;
    max-width: 420px;
    padding: 26px 20px;
  }

  .industry-card-icon {
    width: 56px;
    height: 56px;
  }

  .industry-card-icon svg {
    width: 36px;
    height: 36px;
  }

  .industry-card-title {
    font-size: 0.95rem;
  }
}

/* Mobile (361px – 640px) */
@media (min-width: 361px) and (max-width: 640px) {
  .industry-data-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px;
  }

  .industry-card-icon {
    width: 52px;
    height: 52px;
  }

  .industry-card-icon svg {
    width: 34px;
    height: 34px;
  }

  .industry-card-title {
    font-size: 0.95rem;
  }
}

/* Small Mobile (≤ 360px) */
@media (max-width: 360px) {
  .industry-data-card {
    width: 100%;
    max-width: 100%;
    padding: 20px 14px;
  }

  .industry-card-icon {
    width: 48px;
    height: 48px;
  }

  .industry-card-icon svg {
    width: 32px;
    height: 32px;
  }

  .industry-card-title {
    font-size: 0.90rem;
  }
}

/* Light Mode Theme Overrides for In-Depth Analysis & Industry Benchmark Cards */
:root.light .ind-analysis-heading {
  color: #0F172A !important;
}

:root.light .ind-analysis-subtext {
  color: #B3721A !important;
}

:root.light .industry-data-card {
  background: #FFFDF8 !important;
  border-color: rgba(217, 177, 100, 0.4) !important;
  box-shadow: 0 10px 30px rgba(217, 177, 100, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Theme Overrides for Industry Data Cards & Section (Light Mode Support) */
:root.light #problems,
html.light #problems,
body.light #problems,
.light #problems {
  background-color: #FDFBF7 !important;
  color: #0F172A !important;
}

:root.light .ind-analysis-heading,
html.light .ind-analysis-heading,
.light .ind-analysis-heading {
  color: #0F172A !important;
}

:root.light .ind-analysis-subtext,
html.light .ind-analysis-subtext,
.light .ind-analysis-subtext {
  color: #8C621C !important;
}

:root.light .industry-data-card,
html.light .industry-data-card,
.light .industry-data-card {
  background: #FFFFFF !important;
  border-color: rgba(217, 177, 100, 0.4) !important;
  box-shadow: 0 10px 30px rgba(217, 177, 100, 0.08) !important;
}

:root.light .industry-data-card::before,
html.light .industry-data-card::before,
.light .industry-data-card::before {
  background: radial-gradient(circle at center, rgba(217, 177, 100, 0.3) 0%, rgba(250, 240, 217, 0.6) 50%, transparent 75%);
}

:root.light .industry-data-card:hover,
html.light .industry-data-card:hover,
.light .industry-data-card:hover {
  border-color: #D9B164 !important;
  box-shadow: 0 0 45px rgba(217, 177, 100, 0.35), 0 16px 35px rgba(217, 177, 100, 0.18) !important;
}

:root.light .industry-card-icon-box,
html.light .industry-card-icon-box,
.light .industry-card-icon-box {
  background: #FAF0D9 !important;
  border-color: rgba(217, 177, 100, 0.5) !important;
  color: #B3721A !important;
  box-shadow: 0 4px 12px rgba(217, 177, 100, 0.15) !important;
}

.industry-card-header-title {
  font-family: 'Poppins', sans-serif !important;
}

:root.light .industry-card-header-title,
html.light .industry-card-header-title,
.light .industry-card-header-title {
  color: #B3721A !important;
}

:root.light .industry-card-inner-box,
html.light .industry-card-inner-box,
.light .industry-card-inner-box {
  background: #FAF5EA !important;
  border-color: rgba(217, 177, 100, 0.35) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

:root.light .industry-card-quote-box,
html.light .industry-card-quote-box,
.light .industry-card-quote-box {
  background: #FAF0D9 !important;
  border-left-color: #D9B164 !important;
}

.industry-card-subpill {
  min-width: 0 !important;
  overflow: hidden !important;
}

.industry-card-subpill svg {
  width: 1rem !important;
  height: 1rem !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
}

:root.light .industry-card-subpill,
html.light .industry-card-subpill,
.light .industry-card-subpill {
  background: #FAF0D9 !important;
  border-color: rgba(217, 177, 100, 0.4) !important;
}

/* Hero Coverflow Nav Buttons Light Theme Styling */
:root.light #hero-nav-prev,
:root.light #hero-nav-next {
  background-color: transparent !important;
  border-color: #D9B164 !important;
  color: #D9B164 !important;
  box-shadow: none !important;
}

:root.light #hero-nav-prev:hover,
:root.light #hero-nav-next:hover {
  background-color: rgba(217, 177, 100, 0.15) !important;
  color: #D9B164 !important;
  box-shadow: 0 0 15px rgba(217, 177, 100, 0.3) !important;
}

/* Click to Explore CTA Pill - Always Visible & Glowing on Direct Hover */
.click-hint {
  opacity: 1 !important;
  transition: all 0.3s ease-in-out !important;
  cursor: pointer !important;
}

.click-hint:hover {
  background-color: #D9B164 !important;
  color: #0B0F17 !important;
  border-color: #D9B164 !important;
  box-shadow: 0 0 25px rgba(217, 177, 100, 0.75), 0 0 10px rgba(217, 177, 100, 0.5) !important;
  transform: scale(1.08) !important;
}

.click-hint:hover svg {
  transform: translateX(4px) !important;
}

:root.light .industry-card-stat-val,
html.light .industry-card-stat-val,
.light .industry-card-stat-val {
  color: #B3721A !important;
}

:root.light .industry-card-quote,
html.light .industry-card-quote,
.light .industry-card-quote,
:root.light .industry-card-survey-text,
html.light .industry-card-survey-text,
.light .industry-card-survey-text {
  color: #0F172A !important;
}

:root.light .industry-card-subtext,
html.light .industry-card-subtext,
.light .industry-card-subtext {
  color: #334155 !important;
}

:root.light .industry-card-footer-box,
html.light .industry-card-footer-box,
.light .industry-card-footer-box {
  background: #FAF0D9 !important;
  border-color: rgba(217, 177, 100, 0.4) !important;
}

:root.light .industry-card-source-text,
html.light .industry-card-source-text,
.light .industry-card-source-text {
  color: #0F172A !important;
}

:root.light .industry-card-source-label,
html.light .industry-card-source-label,
.light .industry-card-source-label {
  color: #D9B164 !important;
}

.industry-card-link {
  font-weight: 900 !important;
}

:root.light .industry-card-link,
html.light .industry-card-link,
.light .industry-card-link {
  color: #D9B164 !important;
  font-weight: 900 !important;
}

:root.light .industry-card-link:hover,
html.light .industry-card-link:hover,
.light .industry-card-link:hover {
  color: #E2AB5B !important;
}

/* Light Mode Overrides for Real Cost Banner */
:root.light .real-cost-banner,
html.light .real-cost-banner,
.light .real-cost-banner {
  background: #FFFDF8 !important;
  border-color: rgba(217, 177, 100, 0.4) !important;
  box-shadow: 0 12px 35px rgba(217, 177, 100, 0.15) !important;
}

:root.light .real-cost-icon-badge,
html.light .real-cost-icon-badge,
.light .real-cost-icon-badge {
  background: #FAF0D9 !important;
  border-color: rgba(217, 177, 100, 0.5) !important;
  color: #B3721A !important;
  box-shadow: 0 4px 15px rgba(217, 177, 100, 0.2) !important;
}

:root.light .real-cost-title,
html.light .real-cost-title,
.light .real-cost-title {
  color: #0F172A !important;
}

:root.light .real-cost-desc,
html.light .real-cost-desc,
.light .real-cost-desc {
  color: #475569 !important;
}

:root.light .real-cost-node-icon,
html.light .real-cost-node-icon,
.light .real-cost-node-icon {
  background: #FAF0D9 !important;
  border-color: rgba(217, 177, 100, 0.4) !important;
  color: #B3721A !important;
  box-shadow: 0 4px 12px rgba(217, 177, 100, 0.18) !important;
}

:root.light .real-cost-node-label,
html.light .real-cost-node-label,
.light .real-cost-node-label {
  color: #0F172A !important;
}

:root.light .real-cost-cta-text,
html.light .real-cost-cta-text,
.light .real-cost-cta-text {
  color: #475569 !important;
}

/* Real Cost Banner & Node Hover Glow Effects */
.real-cost-banner {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.real-cost-banner:hover {
  border-color: #D9B164 !important;
  box-shadow: 0 0 55px rgba(217, 177, 100, 0.35), 0 20px 45px rgba(0, 0, 0, 0.6) !important;
}

.real-cost-node-item {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.real-cost-node-item:hover {
  transform: translateY(-5px);
}

.real-cost-node-item:hover .real-cost-node-icon {
  background: #D9B164 !important;
  color: #0F172A !important;
  border-color: #F0A535 !important;
  box-shadow: 0 0 25px rgba(217, 177, 100, 0.75), 0 0 12px rgba(255, 255, 255, 0.6) !important;
  transform: scale(1.15);
}

.real-cost-node-item:hover .real-cost-node-label {
  color: #D9B164 !important;
}

:root.light .real-cost-banner:hover,
html.light .real-cost-banner:hover,
.light .real-cost-banner:hover {
  border-color: #D9B164 !important;
  box-shadow: 0 0 50px rgba(217, 177, 100, 0.35), 0 16px 35px rgba(217, 177, 100, 0.18) !important;
}

:root.light .real-cost-node-item:hover .real-cost-node-icon,
html.light .real-cost-node-item:hover .real-cost-node-icon,
.light .real-cost-node-item:hover .real-cost-node-icon {
  background: linear-gradient(135deg, #E5982A 0%, #D9B164 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 0 22px rgba(217, 177, 100, 0.65) !important;
}

:root.light .real-cost-node-item:hover .real-cost-node-label,
html.light .real-cost-node-item:hover .real-cost-node-label,
.light .real-cost-node-item:hover .real-cost-node-label {
  color: #B3721A !important;
}

/* ==========================================================================
   Problem Detail Panel Dual-Theme Contrast Enforcement
   ========================================================================== */
html.dark #problem-detail-panel,
:root.dark #problem-detail-panel,
.dark #problem-detail-panel {
  background-color: #0A0705 !important;
  border-color: rgba(217, 177, 100, 0.5) !important;
  box-shadow: 0 0 60px rgba(217, 177, 100, 0.25) !important;
}

html.dark #panel-title,
:root.dark #panel-title,
.dark #panel-title {
  color: #f9fafb !important;
}

html.dark #panel-summary,
:root.dark #panel-summary,
.dark #panel-summary {
  color: #f3f4f6 !important;
}

html.dark #panel-detail,
:root.dark #panel-detail,
.dark #panel-detail {
  color: #e5e7eb !important;
}

html.dark #panel-solution,
:root.dark #panel-solution,
.dark #panel-solution {
  color: #ffffff !important;
}

html:not(.dark) #problem-detail-panel,
html.light #problem-detail-panel,
:root.light #problem-detail-panel,
.light #problem-detail-panel {
  background-color: rgba(250, 248, 245, 0.96) !important;
  border-color: rgba(156, 128, 76, 0.4) !important;
  box-shadow: 0 15px 50px rgba(156, 128, 76, 0.2) !important;
}

html:not(.dark) #panel-title,
html.light #panel-title,
:root.light #panel-title,
.light #panel-title {
  color: #111827 !important;
}

html:not(.dark) #panel-summary,
html.light #panel-summary,
:root.light #panel-summary,
.light #panel-summary {
  color: #1f2937 !important;
}

html:not(.dark) #panel-detail,
html.light #panel-detail,
:root.light #panel-detail,
.light #panel-detail {
  color: #111827 !important;
}
html.light .industry-card-source-text,
.light .industry-card-source-text {
  color: #0F172A !important;
}

:root.light .industry-card-source-label,
html.light .industry-card-source-label,
.light .industry-card-source-label {
  color: #D9B164 !important;
}

.industry-card-link {
  font-weight: 900 !important;
}

:root.light .industry-card-link,
html.light .industry-card-link,
.light .industry-card-link {
  color: #D9B164 !important;
  font-weight: 900 !important;
}

:root.light .industry-card-link:hover,
html.light .industry-card-link:hover,
.light .industry-card-link:hover {
  color: #E2AB5B !important;
}

/* Light Mode Overrides for Real Cost Banner */
:root.light .real-cost-banner,
html.light .real-cost-banner,
.light .real-cost-banner {
  background: #FFFDF8 !important;
  border-color: rgba(217, 177, 100, 0.4) !important;
  box-shadow: 0 12px 35px rgba(217, 177, 100, 0.15) !important;
}

:root.light .real-cost-icon-badge,
html.light .real-cost-icon-badge,
.light .real-cost-icon-badge {
  background: rgba(217, 177, 100, 0.15) !important;
  border-color: rgba(217, 177, 100, 0.5) !important;
  color: #D9B164 !important;
  box-shadow: 0 4px 15px rgba(217, 177, 100, 0.2) !important;
}

:root.light .real-cost-title,
html.light .real-cost-title,
.light .real-cost-title {
  color: #0F172A !important;
}

:root.light .real-cost-desc,
html.light .real-cost-desc,
.light .real-cost-desc {
  color: #475569 !important;
}

:root.light .real-cost-node-icon,
html.light .real-cost-node-icon,
.light .real-cost-node-icon {
  background: rgba(217, 177, 100, 0.12) !important;
  border: 2px solid #D9B164 !important;
  color: #D9B164 !important;
  box-shadow: 0 4px 15px rgba(217, 177, 100, 0.2) !important;
}

:root.light .real-cost-node-label,
html.light .real-cost-node-label,
.light .real-cost-node-label {
  color: #0F172A !important;
}

:root.light .real-cost-cta-text,
html.light .real-cost-cta-text,
.light .real-cost-cta-text {
  color: #475569 !important;
}

/* Real Cost Banner & Node Hover Glow Effects */
.real-cost-banner {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.real-cost-banner:hover {
  border-color: #D9B164 !important;
  box-shadow: 0 0 55px rgba(217, 177, 100, 0.35), 0 20px 45px rgba(0, 0, 0, 0.6) !important;
}

.real-cost-node-item {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.real-cost-node-item:hover {
  transform: translateY(-5px);
}

.real-cost-node-item:hover .real-cost-node-icon {
  background: #D9B164 !important;
  color: #FFFFFF !important;
  border-color: #D9B164 !important;
  box-shadow: 0 0 30px rgba(217, 177, 100, 0.85), 0 0 15px rgba(217, 177, 100, 0.5) !important;
  transform: scale(1.15);
}

.real-cost-node-item:hover .real-cost-node-label {
  color: #D9B164 !important;
}

:root.light .real-cost-banner:hover,
html.light .real-cost-banner:hover,
.light .real-cost-banner:hover {
  border-color: #D9B164 !important;
  box-shadow: 0 0 50px rgba(217, 177, 100, 0.35), 0 16px 35px rgba(217, 177, 100, 0.18) !important;
}

:root.light .real-cost-node-item:hover .real-cost-node-icon,
html.light .real-cost-node-item:hover .real-cost-node-icon,
.light .real-cost-node-item:hover .real-cost-node-icon {
  background: #D9B164 !important;
  color: #FFFFFF !important;
  border-color: #D9B164 !important;
  box-shadow: 0 0 30px rgba(217, 177, 100, 0.85), 0 0 15px rgba(217, 177, 100, 0.5) !important;
  transform: scale(1.15);
}

:root.light .real-cost-node-item:hover .real-cost-node-label,
html.light .real-cost-node-item:hover .real-cost-node-label,
.light .real-cost-node-item:hover .real-cost-node-label {
  color: #D9B164 !important;
}

/* ==========================================================================
   Problem Detail Panel Dual-Theme Contrast Enforcement
   ========================================================================== */
html.dark #problem-detail-panel,
:root.dark #problem-detail-panel,
.dark #problem-detail-panel {
  background-color: #0A0705 !important;
  border-color: rgba(217, 177, 100, 0.5) !important;
  box-shadow: 0 0 60px rgba(217, 177, 100, 0.25) !important;
}

html.dark #panel-title,
:root.dark #panel-title,
.dark #panel-title {
  color: #f9fafb !important;
}

html.dark #panel-summary,
:root.dark #panel-summary,
.dark #panel-summary {
  color: #f3f4f6 !important;
}

html.dark #panel-detail,
:root.dark #panel-detail,
.dark #panel-detail {
  color: #e5e7eb !important;
}

html.dark #panel-solution,
:root.dark #panel-solution,
.dark #panel-solution {
  color: #ffffff !important;
}

html:not(.dark) #problem-detail-panel,
html.light #problem-detail-panel,
:root.light #problem-detail-panel,
.light #problem-detail-panel {
  background-color: rgba(250, 248, 245, 0.96) !important;
  border-color: rgba(156, 128, 76, 0.4) !important;
  box-shadow: 0 15px 50px rgba(156, 128, 76, 0.2) !important;
}

html:not(.dark) #panel-title,
html.light #panel-title,
:root.light #panel-title,
.light #panel-title {
  color: #111827 !important;
}

html:not(.dark) #panel-summary,
html.light #panel-summary,
:root.light #panel-summary,
.light #panel-summary {
  color: #1f2937 !important;
}

html:not(.dark) #panel-detail,
html.light #panel-detail,
:root.light #panel-detail,
.light #panel-detail {
  color: #111827 !important;
}

html:not(.dark) #panel-solution,
html.light #panel-solution,
:root.light #panel-solution,
.light #panel-solution {
  color: #111827 !important;
}

/* Inner Box Dark Mode High Contrast Overrides */
html.dark #problem-detail-panel .bg-\[\#D9B164\]\/10,
.dark #problem-detail-panel .bg-\[\#D9B164\]\/10 {
  background-color: rgba(217, 177, 100, 0.08) !important;
  border-color: rgba(217, 177, 100, 0.3) !important;
}

html.dark #problem-detail-panel .bg-red-50,
.dark #problem-detail-panel .bg-red-50 {
  background-color: rgba(127, 29, 29, 0.35) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

html.dark #problem-detail-panel .text-red-700,
.dark #problem-detail-panel .text-red-700 {
  color: #f87171 !important;
}

html.dark #problem-detail-panel .bg-\[\#D9B164\]\/15,
.dark #problem-detail-panel .bg-\[\#D9B164\]\/15 {
  background-color: rgba(217, 177, 100, 0.15) !important;
  border-color: rgba(217, 177, 100, 0.45) !important;
}

html.dark #problem-detail-panel .text-\[\#D9B164\],
.dark #problem-detail-panel .text-\[\#D9B164\] {
  color: #D9B164 !important;
}

/* ==========================================================================
   Hero Problem Cards (Coverflow) Dual-Theme Styling & High Contrast
   ========================================================================== */

/* Dark Mode */
html.dark .hero-problem-card,
:root.dark .hero-problem-card,
.dark .hero-problem-card {
  background-color: rgba(10, 7, 5, 0.95) !important;
  border-color: rgba(217, 177, 100, 0.4) !important;
}

html.dark .hero-problem-card h3,
:root.dark .hero-problem-card h3,
.dark .hero-problem-card h3 {
  color: #FFFFFF !important;
}

html.dark .hero-problem-card:hover h3,
:root.dark .hero-problem-card:hover h3,
.dark .hero-problem-card:hover h3 {
  color: #D9B164 !important;
}

html.dark .hero-problem-card p,
:root.dark .hero-problem-card p,
.dark .hero-problem-card p {
  color: #E5E7EB !important;
}

/* Light Mode */
html.light .hero-problem-card,
:root.light .hero-problem-card,
html:not(.dark) .hero-problem-card,
.light .hero-problem-card {
  background-color: #FAF8F5 !important;
  border-color: rgba(217, 177, 100, 0.45) !important;
  box-shadow: 0 10px 30px -10px rgba(217, 177, 100, 0.2) !important;
}

html.light .hero-problem-card h3,
:root.light .hero-problem-card h3,
html:not(.dark) .hero-problem-card h3,
.light .hero-problem-card h3 {
  color: #0A0807 !important;
}

html.light .hero-problem-card:hover h3,
:root.light .hero-problem-card:hover h3,
html:not(.dark) .hero-problem-card:hover h3,
.light .hero-problem-card:hover h3 {
  color: #D9B164 !important;
}

html.light .hero-problem-card p,
:root.light .hero-problem-card p,
html:not(.dark) .hero-problem-card p,
.light .hero-problem-card p {
  color: #4B5563 !important;
}

/* Active Highlight Card in Light Mode */
html.light .hero-problem-card.is-active,
:root.light .hero-problem-card.is-active,
html:not(.dark) .hero-problem-card.is-active {
  border-color: #D9B164 !important;
  box-shadow: 0 0 35px rgba(217, 177, 100, 0.4), 0 15px 40px -10px rgba(0, 0, 0, 0.1) !important;
}

/* Active Highlight Card in Dark Mode */
html.dark .hero-problem-card.is-active,
:root.dark .hero-problem-card.is-active {
  border-color: #D9B164 !important;
  box-shadow: 0 0 35px rgba(217, 177, 100, 0.35), 0 0 60px rgba(217, 177, 100, 0.15) !important;
}
