.hero-overlay {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: radial-gradient(circle at 20% 20%, #ffe5ec 0%, #f7f7f9 60%, #ffffff 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.hero-overlay-inner {
  position: relative;
  max-width: 1400px;      /* let it breathe */
  margin: 0 auto;
  padding: 3.5rem 1rem 2.5rem;
}

.hero-overlay-title {
  position: absolute;
  top: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 1.05;
  font-weight: 800;
  color: #2b2b2b;
  z-index: 2;
  padding: 0.2rem 0.9rem;
  background: rgba(255,255,255,0.55); /* makes it readable while "covering" */
  border-radius: 14px;
  backdrop-filter: blur(3px);
}

.hero-overlay-graphic {
  display: block;
  width: min(1200px, 95vw);
  height: auto;
  margin: 3.8rem auto 0 auto; /* push graphic under the title */
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.08));
}

/* Footer big logo */
.footer-big-logo {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.footer-big-logo img {
  width: 240px;
  max-width: 35vw;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.08));
  transition: transform .25s ease-in-out;
}
.footer-big-logo img:hover {
  transform: scale(1.03);
}

@media (max-width: 576px) {
  .footer-big-logo img {
    width: 160px;
    max-width: 45vw;
  }
}




.intro-section {
  background: none;
  padding: 80px 0;
  margin: 60px 0;
}



/* Research questions box (inside intro) */
.research-questions-box {
  background-color: rgba(248, 249, 250, 0.95);
  border-left: 4px solid #8b0000;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.research-questions-box h2 {
  color: #8b0000;
}



.hero-analysis {
  max-width: 1100px;
  margin: 80px auto 40px auto;
  padding: 0 20px;
  text-align: center;
}

.hero-analysis h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #1f1f1f;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}

.hero-quote {
  margin: 50px auto;
  max-width: 700px;
  font-style: italic;
  color: #666;
  text-align: center;
}

.hero-quote span {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
  color: #444;
}



.bubble-layout{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

.bubble-chart{
  width:100%;
  height:640px;              /* + grand */
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(0,0,0,0.06);
}


.bubble-panel{
  position: sticky;
  top: 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 14px;
  max-height: 560px;
  display: flex;
  flex-direction: column;
}

.panel-header{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-title{
  font-weight: 800;
  font-size: 1.1rem;
}

.panel-sub{
  color:#666;
  font-size: 0.92rem;
  margin-top: 2px;
}

.panel-close{
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color:#444;
}

.panel-search{
  width:100%;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0 10px;
  outline: none;
}

.panel-list{
  overflow: auto;
  padding-right: 6px;
}

.company-row{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 10px;
}

.company-row .name{
  font-weight: 700;
}

.company-row .meta{
  color:#666;
  font-size: 0.9rem;
  margin-top: 4px;
}

@media (max-width: 980px){
  .bubble-layout{ grid-template-columns: 1fr; }
  .bubble-panel{ position: relative; top: 0; max-height: none; }
  .bubble-chart{ height: 520px; }
}


/* HERO WRAPPER */
.hero {
  position: relative;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #fff1f5 40%,
    #ffffff 100%
  );
  padding-bottom: 6rem;
}

/* IMAGE */
.hero-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
}

/* CONTENT */
.hero-content {
  max-width: 900px;
  margin: -2.5rem auto 0;
  padding: 0 1rem;
  text-align: center;
}

/* TITLE */
.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
  font-weight: 600;
  opacity: 0.85;
}

/* SUBTITLE */
.hero-subtitle {
  font-size: 1.05rem;
  color: #555;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}



.intro {
  max-width: 820px;
  margin: 6rem auto;
  padding: 0 1rem;
  text-align: center;
}

.intro h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

blockquote {
  font-style: italic;
  color: #666;
}

blockquote span {
  display: block;
  margin-top: 0.8rem;
  font-weight: 600;
  color: #333;
}


.hero-content {
  animation: fadeUp 0.8s ease-out forwards;
}

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


/* Cinematic hero wrapper */
.hero-cinematic {
  position: relative;
  min-height: 120vh; /* enough room for scroll narrative */
  background: #fff;
  overflow: clip;
}

/* Sticky background */
.hero-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  z-index: 0;
}

/* Background image: crisp at top, centered */
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* keeps full drawing visible */
  object-position: center top;
  display: block;
  transform: translateZ(0);  /* helps crisp rendering */
}

/* Soft tint + gradient so text stays readable */
.hero-bg-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 230, 240, 0.55) 0%, rgba(255,255,255,0.15) 55%, rgba(255,255,255,0.75) 100%),
    linear-gradient(to bottom, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.55) 55%, rgba(255,255,255,0.95) 100%);
  pointer-events: none;
}

/* Foreground steps (scroll over the bg) */
.hero-steps {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: -100vh auto 0; /* start content at top while bg is sticky */
  padding: 7rem 1.2rem 6rem;
  text-align: center;
}

/* Each step gets viewport space to create "chapters" */
.hero-step {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Typography */
.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

.hero-title span {
  display: block;
  font-weight: 650;
  opacity: 0.86;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #4b4b4b;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}

.intro-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 750;
  margin: 0 0 1.2rem;
}

.intro-text {
  font-size: 1.08rem;
  color: #3f3f3f;
  line-height: 1.75;
  max-width: 780px;
  margin: 0 auto 2.2rem;
}

.hero-quote {
  font-style: italic;
  color: #666;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-quote span {
  display: block;
  margin-top: 0.9rem;
  font-weight: 650;
  color: #2f2f2f;
}

/* This is the layer we will fade with JS */
.hero-bg {
  opacity: 1;
  transition: opacity 0.12s linear; /* helps smoothness */
}

/* Mobile tweak: give image more breathing room */
@media (max-width: 768px) {
  .hero-steps { padding-top: 6rem; }
  .hero-bg-img { object-fit: contain; }
}

.math-collapse {
  margin: 20px 0;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.math-collapse summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 16px;
  color: #b039ca;
}

.math-card {
  padding: 18px 22px;
}

.math-highlight {
  background: rgba(176,57,202,.08);
  border-left: 4px solid #b039ca;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 14px 0;
}


.nasdaq-acronym{
  max-width: 860px;
  margin: 2.2rem auto 0;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  text-align: center;
  cursor: pointer;
  outline: none;
  user-select: none;
  transform: translateZ(0);
}

.nasdaq-line{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
}

.nasdaq-word{
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
}

.nasdaq-word::after{
  content:"";
  position:absolute;
  left: 8%;
  right: 8%;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.12;
  transform: scaleX(0.6);
  transition: transform 350ms ease, opacity 350ms ease;
}

.nasdaq-badge{
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255, 240, 246, 0.9);
}

.nasdaq-expand{
  margin-top: 0.85rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: max-height 450ms ease, opacity 350ms ease, transform 450ms ease;
}

.nasdaq-expansion{
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
}

.nasdaq-expansion .k{
  font-weight: 850;
  display: inline-block;
  padding: 0 0.1rem;
  border-radius: 6px;
  background: rgba(255, 77, 136, 0.10);
}

.nasdaq-hint{
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: rgba(0,0,0,0.55);
}

/* Hover reveal */
.nasdaq-acronym:hover .nasdaq-expand,
.nasdaq-acronym.is-open .nasdaq-expand{
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
}

.nasdaq-acronym:hover .nasdaq-word::after,
.nasdaq-acronym.is-open .nasdaq-word::after{
  opacity: 0.28;
  transform: scaleX(1);
}

/* Keyboard focus */
.nasdaq-acronym:focus-visible{
  box-shadow: 0 0 0 4px rgba(255, 77, 136, 0.18), 0 14px 40px rgba(0,0,0,0.08);
}


.nasdaq-reveal{
  max-width: 1100px;
  margin: 2.6rem auto 1rem;
  padding: 2.2rem 1.6rem 1.8rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.10);
  text-align: center;
}

.nasdaq-title{
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.4rem;
}

.nasdaq-letters{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  align-items: start;
  justify-items: center;
  margin: 0 auto 1.4rem;
  max-width: 900px;
}

@media (max-width: 720px){
  .nasdaq-letters{
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1.2rem;
  }
}


.nasdaq-letter{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 1rem 0.6rem 1.1rem;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  position: relative;
  outline: none;
}

.nasdaq-letter:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.12);
}

.nasdaq-letter:focus-visible{
  box-shadow: 0 0 0 4px rgba(255, 77, 136, 0.20), 0 18px 44px rgba(0,0,0,0.10);
}

.nasdaq-letter .L{
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nasdaq-letter .word{
  display: block;
  margin-top: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.nasdaq-letter:hover .word,
.nasdaq-letter.is-open .word{
  opacity: 1;
  transform: translateY(0);
}

.nasdaq-letter::after{
  content:"";
  position:absolute;
  left: 18%;
  right: 18%;
  bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.08;
  transform: scaleX(0.7);
  transition: opacity 220ms ease, transform 220ms ease;
}

.nasdaq-letter:hover::after,
.nasdaq-letter.is-open::after{
  opacity: 0.18;
  transform: scaleX(1);
}

.nasdaq-full{
  font-size: 1.05rem;
  color: rgba(0,0,0,0.7);
  display: inline-flex;
  gap: 0.6rem;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}

.nasdaq-full .label{
  font-weight: 800;
  opacity: 0.75;
}

.nasdaq-full .sentence{
  font-weight: 650;
}

@media (max-width: 860px){
  .nasdaq-letters{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hierarchizing section styles */
@media (max-width: 768px) {
  /* Make metric cards stack on mobile */
  div[style*="grid-template-columns:repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Adjust weight cards for mobile */
  div[style*="grid-template-columns:repeat(auto-fit, minmax(200px"] {
    grid-template-columns: 1fr !important;
  }
}

/* Flourish embed styling */
.flourish-embed {
  width: 100%;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
}

.flourish-embed iframe {
  width: 100%;
  border: none;
  border-radius: 12px;
}

/* Ensure Flourish containers are responsive */
.flourish-chart,
.flourish-scatter,
.flourish-bar-chart-race {
  width: 100%;
  min-height: 400px;
}

@media (max-width: 768px) {
  .flourish-chart,
  .flourish-scatter,
  .flourish-bar-chart-race {
    min-height: 300px;
  }
}

/* Visualization grid for Discrete Period Analysis */
.visualization-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.visualization-grid-item {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  background: #fff;
}

.visualization-grid-item iframe {
  width: 100%;
  border: none;
  display: block;
}

/* Remove extra margins from Flourish embeds inside grid */
.visualization-grid-item .flourish-embed {
  margin: 0;
}

/* Graphy iframe styling */
.graphy-embed {
  width: 100%;
  min-height: 500px;
  border: none;
  border-radius: 12px;
}

/* Reduce spacing around Discrete Period Analysis section */
h4:has(+ p + .visualization-grid),
h4:has(+ .visualization-grid) {
  margin-bottom: 8px;
}

p:has(+ .visualization-grid) {
  margin-bottom: 8px;
}

/* Interactive Comparison Cards */
.comparison-cards-interactive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 2rem 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-card-interactive {
  position: relative;
  padding: 2rem;
  border-radius: 16px;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.comparison-card-interactive:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.comparison-card-interactive.active {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  border-color: rgba(176,57,202,0.5);
}

.leaders-card-interactive.active {
  background: linear-gradient(135deg, rgba(255,77,136,.12), #fff);
  border-color: rgba(255,77,136,0.4);
}

.followers-card-interactive.active {
  background: linear-gradient(135deg, rgba(176,57,202,.12), #fff);
  border-color: rgba(176,57,202,0.4);
}

.leaders-card-interactive {
  border-left: 4px solid #ff4d88;
}

.leaders-card-interactive:hover {
  border-left-color: #ff4d88;
  background: linear-gradient(135deg, rgba(255,77,136,.08), #fff);
  border-color: rgba(255,77,136,0.3);
}

.followers-card-interactive {
  border-left: 4px solid #b039ca;
}

.followers-card-interactive:hover {
  border-left-color: #b039ca;
  background: linear-gradient(135deg, rgba(176,57,202,.08), #fff);
  border-color: rgba(176,57,202,0.3);
}

.card-icon-interactive {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.3s ease;
}

.comparison-card-interactive:hover .card-icon-interactive {
  transform: scale(1.1) rotate(5deg);
}

.comparison-card-interactive h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.4rem;
  color: #2b2b2b;
  font-weight: 700;
}

.comparison-card-interactive p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

/* Auto-Scrolling Horizontal Container */
.auto-scroll-container {
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.auto-scroll-wrapper {
  display: flex;
  gap: 24px;
  width: fit-content;
  animation: autoScroll 30s linear infinite;
}

@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.auto-scroll-item {
  flex: 0 0 500px;
  min-width: 500px;
}

.auto-scroll-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,249,250,0.95));
  border: 2px solid rgba(176,57,202,0.15);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auto-scroll-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff4d88, #b039ca);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auto-scroll-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: rgba(176,57,202,0.3);
}

.auto-scroll-card:hover::before {
  opacity: 1;
}

.scroll-number-big {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(176,57,202,0.2);
  line-height: 1;
  margin-bottom: 1rem;
}

.auto-scroll-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2b2b2b;
  margin: 0 0 1rem 0;
}

.auto-scroll-card p {
  color: #555;
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 0 0 1.5rem 0;
}

.scroll-stats-big {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-big {
  padding: 0.75rem 1.25rem;
  background: rgba(176,57,202,0.1);
  border-radius: 12px;
  font-size: 0.95rem;
  color: #333;
}

.stat-big strong {
  color: #b039ca;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.scroll-sectors-big {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sector-tag-big {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255,77,136,0.15), rgba(176,57,202,0.15));
  border: 1px solid rgba(176,57,202,0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b039ca;
}

/* Pause animation on hover */
.auto-scroll-container:hover .auto-scroll-wrapper {
  animation-play-state: paused;
}

/* Logo Carousel Section */
.logo-carousel-section {
  margin: 0;
  padding: 3rem 0;
  background: linear-gradient(135deg, #ff4d88 0%, #ff6ba3 30%, #ffa8c8 60%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.logo-carousel-container {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.logo-carousel-track {
  display: flex;
  gap: 5rem;
  align-items: center;
  animation: logoScrollRight 40s linear infinite;
  width: fit-content;
  will-change: transform;
}

@keyframes logoScrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

.logo-item {
  flex-shrink: 0;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 70px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-item::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
  z-index: -1;
}

.logo-item:hover::before {
  opacity: 1;
}

.logo-item::after {
  content: '';
  position: absolute;
  right: -2.5rem;
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item:hover .logo-img {
  opacity: 1;
  transform: scale(1.15);
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(255,255,255,0.3));
}

.logo-text-white {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  filter: drop-shadow(0 2px 4px rgba(255,255,255,0.2));
}

.logo-item:hover .logo-text-white {
  opacity: 1;
  transform: scale(1.15);
  text-shadow: 0 4px 16px rgba(255, 255, 255, 0.5);
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.4));
}

/* Glow effect on hover */
.logo-item:hover {
  animation: logoGlow 1.5s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
  }
}

/* Pause on hover */
.logo-carousel-section:hover .logo-carousel-track {
  animation-play-state: paused;
}

/* Animated gradient background */
.logo-carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 77, 136, 0.1) 0%,
    rgba(255, 107, 163, 0.1) 25%,
    rgba(255, 168, 200, 0.1) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    rgba(255, 77, 136, 0.1) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  z-index: 0;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .logo-carousel-section {
    padding: 2rem 0;
  }
  
  .logo-carousel-track {
    gap: 4rem;
    animation-duration: 30s;
  }
  
  .logo-item {
    padding: 0 2rem;
    height: 60px;
  }
  
  .logo-img {
    height: 40px;
    max-width: 140px;
  }
  
  .logo-item::after {
    right: -2rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-cards-interactive {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .auto-scroll-item {
    flex: 0 0 85vw;
    min-width: 85vw;
  }
  
  .auto-scroll-card {
    padding: 1.75rem;
  }
  
  .scroll-number-big {
    font-size: 2.5rem;
  }
  
  .auto-scroll-card h3 {
    font-size: 1.4rem;
  }
  
  .auto-scroll-wrapper {
    animation-duration: 20s;
  }
}


@media (max-width: 768px) {
  .visualization-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 12px 0;
  }
  
  .graphy-embed {
    min-height: 400px;
  }
}
