/* Founders section — Beams background + cinematic full-bleed cards */
#founders.site-section--founders {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000000;
}

#founders.tech-atmosphere::before {
  display: none;
}

.founders-beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.founders-beams__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

#founders > .container {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: min(68rem, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(0.65rem, 1.8vh, 1.15rem);
  padding-block: 0.15rem;
}

/* Title / CTA / particle keep natural height; cards grow to fill the page */
#founders .section-title-block,
#founders .founders-section-cta,
#founders .founders-particle-text {
  flex: 0 0 auto;
}

#founders .section-title-block {
  margin-top: clamp(0.75rem, 2.2vh, 1.5rem);
  margin-bottom: 0;
  padding-top: 0;
}

#founders .section-title-block .section-subhead {
  margin-top: 0.4rem;
  max-width: 34rem;
  line-height: 1.45;
}

#founders .founders-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

#founders .founders-grid {
  flex: 0 0 auto;
  width: 100%;
  max-width: min(58rem, 100%);
  height: auto;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: stretch;
  align-items: stretch;
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
}

#founders .section-eyebrow,
#founders .section-lead,
#founders .section-body-copy p {
  color: var(--color-text);
}

#founders .section-lead,
#founders .section-body-copy p {
  color: var(--color-text-body);
}

/* ── Cinematic founder cards — balanced height (matches reference) ── */
#founders .founder-unit.founder-card--cinematic,
#founders .founder-card--cinematic.clickable-founder-card {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: min(38vh, 22rem);
  justify-self: stretch;
  padding: 0;
  margin: 0;
  border: 1.5px solid rgba(45, 212, 191, 0.65);
  border-radius: 8px;
  box-shadow:
    0 0 20px rgba(45, 212, 191, 0.18),
    inset 0 0 0 1px rgba(45, 212, 191, 0.08);
  background: #0a0e14;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

#founders .founder-card--cinematic .founder-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 6%;
  margin: 0;
  padding: 0;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s ease;
  z-index: 0;
}

#founders .founder-card--cinematic .founder-photo-bg--suhas {
  object-position: center 4%;
}

#founders .founder-card--cinematic .founder-photo-bg--abhilash {
  object-position: center 2%;
}

#founders .founder-card--cinematic .founder-card__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 14, 20, 0.97) 0%,
    rgba(10, 14, 20, 0.72) 28%,
    rgba(10, 14, 20, 0.28) 52%,
    transparent 78%
  );
}

#founders .founder-card--cinematic .founder-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: clamp(1.1rem, 2.8vw, 1.5rem);
  background: none;
  text-align: left;
  pointer-events: none;
}

#founders .founder-card--cinematic .founder-card__name {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: clamp(1.15rem, 1.2vw + 0.8rem, 1.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

#founders .founder-card--cinematic .founder-card__role {
  display: block;
  margin: 0 0 8px;
  color: #2dd4bf;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#founders .founder-card--cinematic .founder-card__role-short {
  display: none;
}

#founders .founder-card--cinematic .founder-card__credentials {
  display: block;
  margin: 0 0 14px;
  color: #9ca3af;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

#founders .founder-card--cinematic .founder-card__bio {
  display: none;
}

#founders .founder-card--cinematic .founder-cta-link {
  display: block;
  margin: 0;
  color: #2dd4bf;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

#founders .founder-card--cinematic .founder-cta-link .arrow-indicator {
  display: inline-block;
  transition: transform 0.2s ease;
}

#founders .founder-card--cinematic .founder-card__sparkle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 14px;
  height: 14px;
  z-index: 5;
  pointer-events: none;
  background: #2dd4bf;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  opacity: 0.95;
  box-shadow:
    0 0 8px rgba(45, 212, 191, 0.85),
    0 0 18px rgba(45, 212, 191, 0.45);
}

#founders .clickable-founder-card.founder-card--cinematic::before,
#founders .clickable-founder-card.founder-card--cinematic::after {
  display: none;
}

/* Grayscale default → full color on interaction */
#founders .founder-card--cinematic:hover .founder-photo-bg,
#founders .founder-card--cinematic:focus-within .founder-photo-bg,
#founders .founder-card--cinematic:active .founder-photo-bg {
  filter: grayscale(0) contrast(1.02);
}

#founders .founder-card--cinematic.clickable-founder-card:hover,
#founders .founder-card--cinematic.clickable-founder-card:focus-visible {
  border-color: rgba(45, 212, 191, 0.92);
  box-shadow:
    0 0 32px rgba(45, 212, 191, 0.32),
    inset 0 0 0 1px rgba(94, 234, 212, 0.2);
  transform: translateY(-2px);
}

#founders .founder-card--cinematic.clickable-founder-card:hover .founder-cta-link,
#founders .founder-card--cinematic.clickable-founder-card:focus-visible .founder-cta-link {
  color: #5eead4;
}

#founders .founder-card--cinematic.clickable-founder-card:hover .founder-cta-link .arrow-indicator,
#founders .founder-card--cinematic.clickable-founder-card:focus-visible .founder-cta-link .arrow-indicator {
  transform: translateX(4px);
}

#founders .founders-section-cta {
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

#founders .founders-particle-text {
  position: relative;
  z-index: 40;
  width: min(42rem, 90%);
  max-width: 100%;
  height: clamp(4.75rem, 10vh, 7.25rem);
  min-height: 4.25rem;
  margin: 0 auto;
  pointer-events: auto;
  filter: drop-shadow(0 0 14px rgba(45, 212, 191, 0.28));
}

#founders .founder-card__sparkle {
  display: none !important;
}

#founders .founders-contact-specular {
  min-width: 9.5rem;
  min-height: 44px;
  height: 44px;
  padding: 0 1.75rem;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: transparent !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

#founders .founders-contact-specular:hover,
#founders .founders-contact-specular:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.32);
}

@media (max-width: 768px) {
  #founders > .container {
    max-width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  #founders .founders-wrapper {
    flex: 1 1 auto;
    min-height: 0;
  }

  #founders .founders-grid {
    height: auto;
    flex: 0 0 auto;
  }

  #founders .founder-card--cinematic,
  #founders .founder-card--cinematic.clickable-founder-card {
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: min(42vh, 18rem);
    width: 100%;
  }

  #founders .founder-card--cinematic .founder-photo-bg--suhas,
  #founders .founder-card--cinematic .founder-photo-bg--abhilash {
    object-position: center 8%;
  }

  #founders .founder-card--cinematic .founder-card__credentials {
    display: none !important;
  }

  #founders .founder-card--cinematic .founder-card__role-full {
    display: none;
  }

  #founders .founder-card--cinematic .founder-card__role-short {
    display: inline;
  }

  #founders .founder-card--cinematic .founder-card__gradient {
    background: linear-gradient(
      to top,
      rgba(10, 14, 20, 0.96) 0%,
      rgba(10, 14, 20, 0.55) 24%,
      rgba(10, 14, 20, 0.12) 42%,
      transparent 58%
    );
  }

  #founders .founder-card--cinematic .founder-text-overlay {
    padding: 0.75rem 0.7rem 0.85rem;
  }

  #founders .founder-card--cinematic .founder-card__name {
    font-size: clamp(0.95rem, 3.6vw, 1.15rem);
    margin-bottom: 2px;
  }

  #founders .founder-card--cinematic .founder-card__role {
    margin-bottom: 0;
    font-size: 10px;
  }

  #founders .founder-card--cinematic .founder-cta-link {
    display: none !important;
  }

  #founders .founders-section-cta {
    margin-top: 0.65rem !important;
    margin-bottom: 0 !important;
  }

  #founders .founders-particle-text {
    height: clamp(4.25rem, 11vh, 6rem);
    min-height: 4.25rem;
    margin: 0.2rem auto 0;
  }
}

@media (max-width: 480px) {
  #founders .founder-card--cinematic .founder-card__credentials {
    display: none !important;
  }

  #founders .founder-card--cinematic .founder-cta-link {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founders-beams__video {
    display: none;
  }

  #founders .founder-card--cinematic .founder-photo-bg {
    transition: none;
  }

  #founders .founder-card--cinematic.clickable-founder-card:hover,
  #founders .founder-card--cinematic.clickable-founder-card:focus-visible,
  #founders .founders-contact-specular:hover,
  #founders .founders-contact-specular:focus-visible {
    transform: none;
  }
}
