/* Public-site narrative and navigation refinements. */
:root {
  --tv-blue: #174f78;
  --tv-blue-dark: #0d2b42;
  --tv-maroon: #6d2435;
  --tv-gold: #c5a880;
  --tv-silver: #e8edf2;
  --tv-cyan: #66fcf1;
  --tv-purple: #6f42c1;
}

#header .menu-links-w > ul { gap: clamp(12px, 1.4vw, 28px); }
#header .menu-w { 
  gap: 12px; 
  display: flex;
  align-items: center;
}
#header .menu-w .news-w { margin-right: 2px; }

/* The legacy hero stylesheet makes the entire hero non-interactive for its
   animation. Re-enable pointer events for the custom homepage content so
   its visible action links can actually receive clicks and taps. */
main[data-scene="Homepage"] .hero[data-astro-cid-226k2nfd],
main[data-scene="Homepage"] .hero[data-astro-cid-226k2nfd] .hero-inner[data-astro-cid-226k2nfd],
main[data-scene="Homepage"] .hero[data-astro-cid-226k2nfd] .hero-inner[data-astro-cid-226k2nfd] a {
  pointer-events: auto !important;
}

/* Some legacy pages were emitted as compressed HTML. These preserve the
   current vocabulary until those templates are rebuilt from source. */
#header .menu-links-w a[href="/usecases/"] > span,
#header .menu-links-w a[href="/gapanalysis/"] > span { font-size: 0; }
#header .menu-links-w a[href="/usecases/"] > span::after,
#header .menu-links-w a[href="/gapanalysis/"] > span::after { font-size: .82rem; }
#header .menu-links-w a[href="/usecases/"] > span::after { content: "Roles & Use Cases"; }
#header .menu-links-w a[href="/gapanalysis/"] > span::after { content: "Connection Gap"; }

/* ==========================================================================
   TOP HEADER RESPONSIVE BREAKPOINTS & CLEAN NAVIGATION FLOW
   ========================================================================== */

/* Wide screens (≥ 1920px) show full 5 nav links */
@media (max-width: 119.99rem) {
  #header .menu-links-w > ul > li:nth-child(5) { display: none; }
}

/* Medium desktop (1024px – 1439px): hide 4th nav link & insights to preserve room */
@media (min-width: 64em) and (max-width: 89.99rem) {
  #header .menu-links-w > ul > li:nth-child(4),
  #header .menu-w .news-w { display: none !important; }
}

/* Tablet & Mobile (< 1024px): hide insights and clean menu spacing */
@media (max-width: 63.99em) {
  #header .menu-w .news-w { display: none !important; }
  #header .container-menu { width: max(200px, 100% - 32px); }
  #header nav { gap: 12px; }
}

/* Fix mobile overflow (< 768px): ensure header fits strictly within viewport */
@media (max-width: 47.99em) {
  #header { 
    top: 1.25rem;
    padding: 0 4px;
    box-sizing: border-box;
  }
  #header .container-menu { 
    width: calc(100% - 24px); 
    margin: 0 auto;
  }
  #header nav { 
    gap: 8px;
    width: 100%;
  }
  #header .menu-w {
    gap: 8px;
  }
}

/* ==========================================================================
   THRALLVISION ACCESS CLUSTER (FOUR DOORS SHELL)
   ========================================================================== */
.tv-access-cluster {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

/* Shared button base styling */
.tv-access-btn,
.tv-access-group-btn,
.tv-access-mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  border-radius: 99px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  line-height: 1;
  text-decoration: none;
  outline: none;
}

.tv-access-btn:hover,
.tv-access-group-btn:hover,
.tv-access-mobile-btn:hover {
  transform: translateY(-1px);
}

/* AI status indicator pulse dot */
.tv-ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tv-cyan);
  box-shadow: 0 0 8px rgba(102, 252, 241, 0.7);
  display: inline-block;
  margin-right: 6px;
  animation: tvDotPulse 2.4s infinite ease-in-out;
}

@keyframes tvDotPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 12px rgba(102, 252, 241, 0.9); }
}

/* --- TIER 1: Wide Desktop (≥ 1440px) - All 4 Compact Pill Controls --- */
.tv-access-full {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 1440px) {
  .tv-access-full { display: inline-flex; }
  .tv-access-grouped { display: none !important; }
  .tv-access-mobile { display: none !important; }
}

.tv-access-subgroup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tv-access-divider {
  width: 1px;
  height: 18px;
  background: rgba(128, 128, 128, 0.35);
  margin: 0 4px;
}

/* Button variants on wide desktop */
.tv-access-btn {
  height: 38px;
  padding: 0 14px;
  font-size: 11.5px;
  border: 1px solid rgba(128, 128, 128, 0.35);
}

.tv-access-btn--guest {
  border-color: rgba(128, 128, 128, 0.35);
  color: inherit;
}
.tv-access-btn--guest:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.tv-access-btn--signin {
  border-color: var(--tv-gold);
  color: inherit;
  background: rgba(197, 168, 128, 0.08);
}
.tv-access-btn--signin:hover {
  background: rgba(197, 168, 128, 0.2);
  border-color: var(--tv-gold);
}

.tv-access-btn--ai-guest {
  border-color: rgba(102, 252, 241, 0.45);
  color: inherit;
  background: rgba(102, 252, 241, 0.06);
}
.tv-access-btn--ai-guest:hover {
  background: rgba(102, 252, 241, 0.16);
  border-color: var(--tv-cyan);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.tv-access-btn--ai-connect {
  border-color: rgba(111, 66, 193, 0.6);
  color: inherit;
  background: rgba(111, 66, 193, 0.12);
}
.tv-access-btn--ai-connect:hover {
  background: rgba(111, 66, 193, 0.25);
  border-color: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.35);
}

.tv-ai-icon {
  margin-right: 5px;
  font-size: 11px;
}

/* --- TIER 2: Mid-Desktop & Tablet (768px – 1439px) - Two Grouped Launchers --- */
.tv-access-grouped {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) and (max-width: 1439px) {
  .tv-access-grouped { display: inline-flex; }
  .tv-access-full { display: none !important; }
  .tv-access-mobile { display: none !important; }
}

.tv-access-group-btn {
  height: 38px;
  padding: 0 14px;
  font-size: 11.5px;
  border-radius: 99px;
  gap: 6px;
}

.tv-access-group-btn--human {
  border: 1px solid rgba(197, 168, 128, 0.6);
  background: rgba(197, 168, 128, 0.1);
}
.tv-access-group-btn--human:hover {
  background: rgba(197, 168, 128, 0.22);
  border-color: var(--tv-gold);
}

.tv-access-group-btn--ai {
  border: 1px solid rgba(102, 252, 241, 0.5);
  background: rgba(102, 252, 241, 0.08);
}
.tv-access-group-btn--ai:hover {
  background: rgba(102, 252, 241, 0.2);
  border-color: var(--tv-cyan);
  box-shadow: 0 0 12px rgba(102, 252, 241, 0.35);
}

.tv-group-icon {
  font-size: 12px;
}

/* --- TIER 3: Mobile (< 768px) - Single Compact Access Launcher --- */
.tv-access-mobile {
  display: none;
  align-items: center;
}

@media (max-width: 767px) {
  .tv-access-mobile { display: inline-flex; }
  .tv-access-full { display: none !important; }
  .tv-access-grouped { display: none !important; }
}

.tv-access-mobile-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 11px;
  border: 1px solid var(--tv-cyan);
  background: rgba(10, 35, 55, 0.85);
  color: var(--tv-cyan);
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.tv-access-mobile-btn:hover {
  background: rgba(102, 252, 241, 0.2);
  color: #fff;
  border-color: #fff;
}

/* ==========================================================================
   REUSABLE RIGHT-SIDE SLIDE-OVER PANEL (#tv-access-slider)
   ========================================================================== */
.tv-slider-container {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.32s ease;
  font-family: 'Inter', sans-serif;
}

.tv-slider-container.active {
  visibility: visible;
  pointer-events: auto;
}

.tv-slider-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 30, 0.20);
  backdrop-filter: blur(3.5px);
  -webkit-backdrop-filter: blur(3.5px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tv-slider-container.active .tv-slider-backdrop {
  opacity: 1;
}

.tv-slider-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: #0d1e30;
  color: #1e293b;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: -18px 0 55px rgba(6, 16, 28, 0.42);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  overflow: hidden;
}

.tv-slider-container.active .tv-slider-panel {
  transform: translateX(0);
}

/* Slider Header (Dark Navy Command Zone) */
.tv-slider-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 24, 38, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tv-slider-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tv-slider-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tv-gold);
  font-weight: 700;
}

.tv-slider-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  font-family: 'Century Gothic', sans-serif;
  text-transform: uppercase;
}

.tv-slider-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tv-silver);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.tv-slider-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: #fff;
  transform: scale(1.06);
}

/* Slider Tab Switcher (Four Conceptual Doors in Dark Navy Zone) */
.tv-slider-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(8, 18, 30, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-slider-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tv-nav-group-title {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  padding-left: 2px;
}

.tv-slider-nav-group.tv-nav-group--ai .tv-nav-group-title {
  color: var(--tv-cyan);
  opacity: 0.9;
}

.tv-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tv-slider-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 237, 242, 0.8);
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.tv-slider-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.tv-slider-tab.active {
  background: rgba(197, 168, 128, 0.22);
  border-color: var(--tv-gold);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.tv-slider-nav-group--ai .tv-slider-tab.active,
.tv-nav-group--ai .tv-slider-tab.active {
  background: rgba(102, 252, 241, 0.18);
  border-color: var(--tv-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(102, 252, 241, 0.3);
}

.tv-tab-icon {
  font-size: 12px;
}

/* Slider Body Content (Light Frosted Mist Zone) */
.tv-slider-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(225, 238, 248, 0.82) 0%, rgba(208, 225, 240, 0.88) 100%);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  color: #1e293b;
}

.tv-mode-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: tvPanelFade 0.28s ease;
}

.tv-mode-panel.active {
  display: flex;
}

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

.tv-panel-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tv-panel-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9a5b13;
  font-weight: 700;
}

.tv-panel-badge--ai {
  color: #0e7490;
}

.tv-panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #091b2c;
  letter-spacing: 0.02em;
}

.tv-panel-intro {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #1e293b;
}

/* Inner Cards (High-Translucency Frosted Mist) */
.tv-panel-card {
  background: rgba(255, 255, 255, 0.74) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(9, 27, 44, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.tv-panel-card--ai {
  border-color: rgba(14, 116, 144, 0.35) !important;
  background: rgba(240, 249, 255, 0.75) !important;
}

.tv-card-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9a5b13 !important;
  font-weight: 700;
  margin: 0;
}

.tv-card-heading--cyan {
  color: #0e7490 !important;
}

.tv-card-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #1e293b;
}

.tv-card-list li {
  margin-bottom: 6px;
}

.tv-card-list li:last-child {
  margin-bottom: 0;
}

.tv-card-list strong {
  color: #091b2c;
}

.tv-panel-card p {
  color: #1e293b !important;
}

/* Secondary / Notice Card in Sign In mode */
#panel-human-signin .tv-panel-card:nth-of-type(2) {
  background: rgba(238, 246, 254, 0.80) !important;
  border: 1px solid rgba(186, 215, 242, 0.75) !important;
}

/* AI Connect Card customization */
#panel-ai-connect .tv-panel-badge--ai {
  color: #7c3aed !important;
}

#panel-ai-connect .tv-card-heading {
  color: #7c3aed !important;
}

#panel-ai-connect .tv-panel-card--ai {
  border-color: rgba(124, 58, 237, 0.35) !important;
  background: rgba(245, 243, 255, 0.75) !important;
}

#panel-ai-connect .tv-panel-card:nth-of-type(2) {
  background: rgba(248, 250, 252, 0.80) !important;
  border-color: rgba(186, 215, 242, 0.65) !important;
}

/* Action triggers inside slider */
.tv-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.tv-panel-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  line-height: 1;
}

.tv-panel-cta--primary {
  background: #154e7d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(21, 78, 125, 0.28);
}
.tv-panel-cta--primary:hover {
  background: #113f67;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 63, 103, 0.38);
}

.tv-panel-cta--secondary {
  background: rgba(255, 255, 255, 0.65);
  color: #091b2c;
  border: 1px solid rgba(15, 35, 60, 0.25);
}
.tv-panel-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 35, 60, 0.45);
}

.tv-panel-cta--ai {
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
  border: 1px solid rgba(14, 116, 144, 0.5);
}
.tv-panel-cta--ai:hover {
  background: rgba(14, 116, 144, 0.22);
  box-shadow: 0 0 16px rgba(14, 116, 144, 0.3);
}

/* Machine Metadata Preview Container */
.tv-metadata-block {
  background: rgba(8, 20, 34, 0.88);
  border: 1px solid rgba(14, 116, 144, 0.4);
  border-radius: 8px;
  padding: 14px;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.45;
  color: #7dd3fc;
  overflow-x: auto;
}

.tv-metadata-block code {
  color: #38bdf8;
}

.tv-metadata-block .key { color: #93c5fd; }
.tv-metadata-block .string { color: #86efac; }
.tv-metadata-block .array { color: #fde047; }

/* Status pill inside panel */
.tv-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  color: #9a5b13;
  border: 1px solid rgba(245, 158, 11, 0.4);
  width: fit-content;
}

/* Disabled / Ghosted ecosystem discovery section */
.tv-ghosted-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px dashed rgba(15, 35, 60, 0.25);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tv-ghosted-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tv-ghosted-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #334155;
  background: rgba(15, 35, 60, 0.06);
  border: 1px solid rgba(15, 35, 60, 0.18);
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tv-ghosted-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.88;
}

.tv-ghosted-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}

.tv-ghosted-item strong {
  color: #0f172a;
}

.tv-ghosted-icon {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Slider Footer */
.tv-slider-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(180, 205, 230, 0.5);
  background: rgba(212, 228, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tv-footer-status {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #091b2c;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.tv-footer-note {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}

/* Prevent body scroll when slider is active */
body.tv-slider-open {
  overflow: hidden !important;
}

/* ==========================================================================
   DESKTOP HOVER PREVIEW CARDS (DUSK FROSTED GLASS)
   ========================================================================== */
.tv-hover-trigger-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .tv-hover-card {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 310px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(14, 26, 42, 0.88);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 40px rgba(4, 10, 18, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: var(--tv-silver);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    pointer-events: none;
    z-index: 200;
    cursor: pointer;
    text-align: left;
  }

  /* Hitbox Bridge: eliminates dead space so pointer stays continuous between button and card */
  .tv-hover-card::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
  }

  /* Specular edge top accent */
  .tv-hover-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  }

  .tv-hover-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .tv-hover-card--guest::after {
    background: linear-gradient(90deg, transparent, var(--tv-gold), transparent);
  }
  .tv-hover-card--signin::after {
    background: linear-gradient(90deg, transparent, rgba(100, 180, 240, 0.85), transparent);
  }
  .tv-hover-card--aiguest::after {
    background: linear-gradient(90deg, transparent, var(--tv-cyan), transparent);
  }
  .tv-hover-card--aiconnect::after {
    background: linear-gradient(90deg, transparent, #c084fc, transparent);
  }

  /* Left-align card for the first button so it doesn't clip on the left */
  .tv-hover-trigger-wrap:first-child .tv-hover-card {
    left: 0;
    right: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  .tv-hover-card {
    display: none !important;
  }
}

.tv-hover-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tv-hover-card-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tv-gold);
}
.tv-hover-card-badge--cyan { color: var(--tv-cyan); }
.tv-hover-card-badge--purple { color: #d8b4fe; }

.tv-hover-card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.tv-hover-card-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(232, 237, 242, 0.82);
  margin: 0 0 10px;
}

.tv-hover-card-glimpse {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 11px;
  color: rgba(232, 237, 242, 0.7);
  line-height: 1.45;
}
.tv-hover-card-glimpse strong { color: #ffffff; }

.tv-hover-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 237, 242, 0.5);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-hover-card-cta {
  color: var(--tv-silver);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.tv-hover-card:hover .tv-hover-card-cta {
  color: #ffffff;
}

.tv-footer-status {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tv-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.tv-footer-note {
  font-size: 11px;
  color: rgba(232, 237, 242, 0.55);
  line-height: 1.4;
}

/* Prevent body scroll when slider is active */
body.tv-slider-open {
  overflow: hidden !important;
}

/* ==========================================================================
   LEGACY NETWORK AND ROLE SECTIONS (PRESERVED)
   ========================================================================== */
.tv-network-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf4f8 52%, #f8f4ee 100%);
  color: var(--tv-blue-dark);
  margin: 7rem 0;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1.25rem, 6vw, 7rem);
}

.tv-network-inner { max-width: 1180px; margin: 0 auto; }
.tv-eyebrow { color: var(--tv-maroon); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tv-network-section h2 { color: var(--tv-blue-dark); font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: 1.03; margin: .75rem 0 1.25rem; max-width: 850px; }
.tv-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 840px; }
.tv-role-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 3rem 0; }
.tv-role-card { background: rgba(255,255,255,.9); border: 1px solid rgba(23,79,120,.15); border-top: 4px solid var(--tv-blue); border-radius: 16px; box-shadow: 0 14px 40px rgba(13,43,66,.08); padding: 1.5rem; }
.tv-role-card:nth-child(2) { border-top-color: var(--tv-gold); }
.tv-role-card:nth-child(3) { border-top-color: var(--tv-maroon); }
.tv-role-card:nth-child(4) { border-top-color: #57886c; }
.tv-role-card h3 { color: var(--tv-blue-dark); font-size: 1.35rem; margin: .5rem 0; }
.tv-role-card p { font-size: .98rem; line-height: 1.55; margin: 0; }
.tv-role-label { color: var(--tv-blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tv-mission-flow { display: grid; gap: .75rem; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 2rem; }
.tv-flow-step { border-left: 2px solid var(--tv-gold); padding: .3rem 0 .3rem .85rem; }
.tv-flow-step strong { display: block; color: var(--tv-maroon); font-size: .87rem; text-transform: uppercase; letter-spacing: .08em; }
.tv-flow-step span { font-size: .9rem; line-height: 1.4; }
.tv-network-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.4rem; }
.tv-button { background: var(--tv-blue); border-radius: 999px; color: #fff !important; display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; padding: .9rem 1.35rem; text-decoration: none; text-transform: uppercase; }
.tv-button--outline { background: transparent; border: 1px solid rgba(23,79,120,.45); color: var(--tv-blue) !important; }

.capital-section .thrallvision-navy-blue,
#grid > .thrallvision-navy-blue {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.capital-section .thrallvision-navy-blue h2,
.capital-section .thrallvision-navy-blue h3,
.capital-section .thrallvision-navy-blue p,
.capital-section .thrallvision-navy-blue strong,
.capital-section .thrallvision-navy-blue li {
  color: #fff !important;
}
.capital-section .read-more-button .arrow {
  border-color: #fff !important;
}

@media (max-width: 850px) {
  .tv-role-grid, .tv-mission-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .tv-role-grid, .tv-mission-flow { grid-template-columns: 1fr; }
  .tv-network-section { margin: 4rem 0; }
}
