/* Verge public site — custom styles layered on top of Tailwind CDN */

html { scroll-behavior: smooth; }
body { background-color: #fff; color: #0F0F11; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #753BBD; }

/* YouTube background video — scaled to cover the hero */
.yt-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0F0F11; }
.yt-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;      /* 16:9 */
  min-height: 100vh; min-width: 177.77vh;
  /* Scale up so the YouTube title (top) and control bar (bottom) are cropped
     out by .yt-bg's overflow:hidden — hides the chrome that briefly flashes on
     start. pointer-events:none also stops the player reacting to hover/clicks. */
  transform: translate(-50%, -50%) scale(1.2);
  pointer-events: none;
  border: 0;
}

/* Scroll reveal (replaces framer-motion whileInView) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sticky nav scrolled state */
#site-nav.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  padding-top: 1rem; padding-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-color: #f3f4f6;
}
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: #00B0B9; transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Portfolio filter chips */
.pf-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 9999px;
  background: #753BBD; color: #fff; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; transition: opacity .2s ease;
}
.pf-chip:hover { opacity: 0.85; }
.pf-chip .pf-chip-x { font-size: 14px; line-height: 1; }

/* Team bio expand-in-place overlay */
.bio-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(15, 15, 17, 0.55); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.bio-backdrop.show { opacity: 1; pointer-events: auto; }
.bio-panel {
  position: fixed; z-index: 71; top: 50%; left: 50%;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 64px); overflow-y: auto;
  background: #fff; border-radius: 24px; padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -48%) scale(.96);
  transition: opacity .25s ease, transform .25s ease;
}
.bio-panel.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .bio-backdrop, .bio-panel { transition: none; }
}
.bio-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 9999px; border: none; cursor: pointer;
  background: #f3f4f6; color: #0F0F11; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.bio-close:hover { background: #e5e7eb; }
.bio-photo {
  width: 96px; height: 96px; border-radius: 16px; object-fit: cover;
  margin-bottom: 20px;
}
.bio-name { font-size: 24px; font-weight: 700; color: #0F0F11; margin-bottom: 4px; }
.bio-role {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: #00B0B9; margin-bottom: 16px;
}
.bio-text { font-size: 15px; line-height: 1.7; color: #4b5563; margin-bottom: 12px; }
.bio-focus {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: #9ca3af; margin-top: 8px;
}
.bio-focus-value { color: #0F0F11; }
.bio-linkedin { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; color: #753BBD; }
.bio-linkedin:hover { color: #00B0B9; }
.team-card-more { transition: color .2s ease; }
.team-card-expandable:hover .team-card-more { color: #00B0B9; }

/* Line clamp fallbacks (Tailwind CDN ships these, kept for safety) */
.line-clamp-1, .line-clamp-3, .line-clamp-4 {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.line-clamp-4 { -webkit-line-clamp: 4; }
