/* ═══════════════════════════════════════
   MEGDESK — FUTURISTIC LUXURY LAYER
   ═══════════════════════════════════════ */

/* ── Subtle code wallpaper (never blocks content) ── */
.code-wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 8%, rgba(0,0,0,0.6) 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 8%, rgba(0,0,0,0.6) 92%, transparent 100%);
}

.code-wallpaper-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: codeScroll 90s linear infinite;
  will-change: transform;
}

.code-wallpaper-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 4rem;
  padding: 2rem 3rem;
}

.code-line {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.62rem;
  line-height: 1.9;
  white-space: nowrap;
  opacity: 0.045;
  letter-spacing: 0.02em;
}

.code-line .c-kw { color: #7c3aed; }
.code-line .c-fn { color: #0891b2; }
.code-line .c-str { color: #00FF00; }
.code-line .c-cm { color: #9ca3af; }
.code-line .c-num { color: #d97706; }
.code-line .c-cls { color: #e8751a; }

@keyframes codeScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Content sits above wallpaper — light sections let code peek through */
body {
  background: #fffbf7;
}

/* backgrounds handled in fixes.css */

main,
.footer {
  position: relative;
  z-index: 1;
}

/* header chrome in fixes.css */

.particle-canvas {
  z-index: 0;
  opacity: 0.35;
}

/* ── Fix hero accent word (no gold block) ── */
.hero-title em.word--accent {
  background: none !important;
  -webkit-text-fill-color: var(--yellow) !important;
  color: var(--yellow) !important;
  font-style: italic;
  text-shadow: 0 0 60px rgba(245, 200, 66, 0.45), 0 0 120px rgba(232, 117, 26, 0.2);
}

/* ── Futuristic glass on light sections ── */
.values-band,
.bento-showcase,
.tech-band,
.testimonials,
.industries-band,
.about,
.credentials,
.faq-section,
.contact {
  position: relative;
}

.values-band::before,
.bento-showcase::before,
.about::before,
.faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(26, 10, 46, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 10, 46, 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}

/* ── Leadership — twin premium cards ── */
.leadership {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 200, 66, 0.06) 0%, transparent 55%),
    rgba(255, 253, 249, 0.72) !important;
  padding: 7rem 0;
}

.leadership .section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.leadership .section-head p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.team-card {
  position: relative;
  padding: 2.75rem 2.5rem 2.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow:
    0 24px 80px rgba(26, 10, 46, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.12), transparent 70%);
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 32px 100px rgba(26, 10, 46, 0.1),
    0 0 0 1px rgba(212, 175, 55, 0.25);
}

.team-avatar {
  width: 148px;
  height: 148px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(245, 200, 66, 0.5);
  box-shadow:
    0 0 0 6px rgba(245, 200, 66, 0.12),
    0 16px 48px rgba(26, 10, 46, 0.12);
  flex-shrink: 0;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s var(--ease);
}

.team-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.35), rgba(232, 117, 26, 0.15));
  border: 1px solid rgba(245, 200, 66, 0.4);
  border-radius: 50px;
}

.team-card h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--plum);
  margin-bottom: 1rem;
}

.team-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 380px;
  margin-inline: auto;
}

.team-card p + p {
  margin-top: 0.75rem;
}

/* Hide old exec layout */
.exec-grid { display: none !important; }

/* ── Futuristic card polish ── */
.bento-cell,
.value-card,
.lux-card,
.quote-card,
.cred-card,
.team-card {
  position: relative;
}

.bento-cell::before,
.value-card::before,
.lux-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-cell:hover::before,
.value-card:hover::before,
.lux-card:hover::before {
  opacity: 1;
}

/* ── Section headings futuristic accent ── */
.section-head h2 {
  position: relative;
}

.section-head .overline {
  color: #c45f0a;
  font-weight: 700;
}

/* ── Hero futuristic edge glow ── */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 200, 66, 0.5), rgba(232, 117, 26, 0.5), transparent);
  z-index: 4;
}

/* ── Nav futuristic underline ── */
.header.scrolled .nav-menu a:not(.nav-cta):hover {
  color: var(--plum);
  text-shadow: 0 0 20px rgba(245, 200, 66, 0.2);
}

/* ── Form & contact glass ── */
.form-panel,
.contact-copy {
  backdrop-filter: blur(16px);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .code-wallpaper-col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .code-line {
    font-size: 0.55rem;
    opacity: 0.035;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-wallpaper-track {
    animation: none;
  }
}
