/* ═══════════════════════════════════════════════════════════════
   VNV — SHARED CORPORATE COMPONENTS (WHITE THEME)
   Palette: Corporate White (#ffffff) + Slate (#0f172a) + Teal (#0891b2)
═══════════════════════════════════════════════════════════════ */

/* ─── MODAL DIALOG ENGINE ─── */
.vnv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.vnv-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.vnv-modal-container {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid #cbd5e1;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25), 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: scale(0.96) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  color: #0f172a;
}

.vnv-modal-backdrop.is-open .vnv-modal-container {
  transform: scale(1) translateY(0);
}

.vnv-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vnv-modal-close:hover {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(90deg);
}

.vnv-modal-body {
  padding: 32px;
}

.vnv-modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.vnv-modal-sub {
  font-size: 13.5px;
  color: var(--primary-dk);
  font-weight: 700;
  margin-bottom: 20px;
}

.modal-section-h {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dk);
  margin-bottom: 10px;
}

.modal-overview-text {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.75;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  color: #1e293b;
}

.modal-deliverable-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-deliverable-list li {
  font-size: 13.5px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bullet-glow {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px rgba(8, 145, 178, 0.5);
  flex-shrink: 0;
}

/* ─── CAPABILITY CARDS & GRIDS ─── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.capability-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.capability-card:hover {
  border-color: rgba(8, 145, 178, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.12);
}

.cap-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary-dk);
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
}

.cap-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.cap-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
}

/* ─── HUB CARD ─── */
.hub-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

/* ─── AUTHOR AVATAR ─── */
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0f2fe;
  border: 1px solid rgba(8, 145, 178, 0.2);
  color: var(--primary-dk);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── MOTION PROJECT CARD ─── */
.motion-project-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.motion-project-card:hover {
  border-color: rgba(8, 145, 178, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.12);
}

.mp-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.mp-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.motion-project-card:hover .mp-img-wrapper img {
  transform: scale(1.04);
}

.mp-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #ffffff;
  color: var(--primary-dk);
  border: 1px solid rgba(8, 145, 178, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.mp-hover-action {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.motion-project-card:hover .mp-hover-action {
  opacity: 1;
}

.mp-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mp-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.mp-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.mp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* ─── MARQUEE (PARTNERS) ─── */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

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

/* ─── STUDIO CTA BANNER (HIGH CONTRAST ENTERPRISE) ─── */
.studio-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  text-align: center;
}

.scb-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.scb-body {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ─── FORMS & INPUTS ─── */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: #0f172a;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS MULTI-DEVICE RESPONSIVENESS (MOBILE-FIRST EXCELLENCE)
═══════════════════════════════════════════════════════════════ */

/* Mobile Touch Optimization */
button, .btn-primary, .btn-secondary, .btn-ghost, .hero-chapter-card, .interest-checkbox-label, .nav-hamburger {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 960px) {
  /* Vector Cards on Homepage & Interior Pages */
  .glass-card[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 32px 24px !important;
  }
  
  .glass-card[style*="grid-template-columns"] > div[style*="order:2"] {
    order: 0 !important;
  }
  .glass-card[style*="grid-template-columns"] > div[style*="order:1"] {
    order: 0 !important;
  }

  /* Deep-dive 3-Column Breakdown Grids (Page 2 Vectors) */
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Contact & Form Multi-Column Layouts */
  div[style*="grid-template-columns: 1.3fr 0.9fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 768px) {
  /* Prevent Mobile Safari / Chrome form zoom */
  input[type="text"], input[type="email"], input[type="tel"], select, textarea, .contact-input {
    font-size: 16px !important;
  }

  /* Modal Responsiveness */
  .vnv-modal-container {
    width: 95vw !important;
    max-height: 92vh !important;
    margin: 16px auto !important;
    border-radius: var(--radius-md) !important;
  }

  .vnv-modal-body {
    padding: 20px 16px !important;
  }

  .vnv-modal-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .vnv-modal-media {
    height: 170px !important;
  }

  /* Studio CTA Banner */
  .studio-cta-banner {
    padding: 36px 20px !important;
    border-radius: var(--radius-md) !important;
  }

  .scb-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .scb-body {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 22px !important;
  }

  /* 2-column input rows & interest checkbox grid */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .interest-checkbox-label {
    min-height: 48px;
    padding: 12px 14px !important;
  }

  .capabilities-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .capability-card {
    padding: 24px 20px !important;
  }
}

@media (max-width: 640px) {
  /* Benefits & Action Bars Stacking on Mobile */
  div[style*="justify-content:space-between; align-items:center; flex-wrap:wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px !important;
    gap: 16px !important;
  }

  div[style*="justify-content:space-between; align-items:center; flex-wrap:wrap"] a.btn-primary,
  div[style*="justify-content:space-between; align-items:center; flex-wrap:wrap"] a.btn-secondary,
  div[style*="display:flex; gap:12px; flex-wrap:wrap; align-items:center"] a.btn-primary,
  div[style*="display:flex; gap:12px; flex-wrap:wrap; align-items:center"] a.btn-secondary,
  div[style*="display:flex; gap:12px; flex-wrap:wrap; align-items:center"] button.btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    min-height: 46px;
  }

  div[style*="display:flex; gap:12px; flex-wrap:wrap"] {
    flex-direction: column !important;
    width: 100% !important;
  }

  div[style*="display:flex; gap:12px; flex-wrap:wrap"] a,
  div[style*="display:flex; gap:12px; flex-wrap:wrap"] button {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .glass-card {
    padding: 18px 16px !important;
    border-radius: var(--radius-md) !important;
  }

  .glass-card[style*="grid-template-columns"] {
    padding: 18px 16px !important;
  }

  .studio-cta-banner {
    padding: 28px 16px !important;
  }

  .studio-cta-banner .btn-primary,
  .studio-cta-banner .btn-secondary {
    width: 100% !important;
    padding: 14px 20px !important;
  }

  .tech-tag {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }
}


