:root {
  --brand-grad:    linear-gradient(100deg, #9b7ffb 0%, #7c8cff 32%, #5b9dff 66%, #42b3ff 100%);
  --brand-glow:    rgba(91, 157, 255, 0.28);
  --nav-h:         64px;

  /* ── Solid panel surfaces (no transparency) ── */
  --panel-bg:      #0c0e17;
  --panel-bg-alt:  #0f1120;
  --panel-border:  #1e2138;
  --panel-rule:    #161829;
  --panel-hover:   #131625;

  /* ── Typography ── */
  --t-primary:     #eef0f8;
  --t-secondary:   #6b7194;
  --t-muted:       #373c5a;
  --t-accent:      #8b99ff;

  /* ── Scrolled / light nav ── */
  --panel-bg-lt:      #ffffff;
  --panel-bg-alt-lt:  #f7f8fc;
  --panel-border-lt:  #e4e6f0;
  --panel-rule-lt:    #eceef6;
  --panel-hover-lt:   #f2f4fb;
  --t-primary-lt:     #0d0f1e;
  --t-secondary-lt:   #525570;
  --t-muted-lt:       #adb2cc;
}


/* ═══════════════════════════════════════════════════════════
   NAV LINKS ROW
═══════════════════════════════════════════════════════════ */

.nav-links {
  display: flex;
  align-items: center;
}


/* ═══════════════════════════════════════════════════════════
   MEGA-WRAP
═══════════════════════════════════════════════════════════ */

.mega-wrap {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}


/* ═══════════════════════════════════════════════════════════
   TRIGGER BUTTON
═══════════════════════════════════════════════════════════ */

.mega-wrap .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 17px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.018em;
  color: var(--t-primary);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

/* Underline bar */
.mega-wrap .nav-link::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 9px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity   220ms ease;
}

.mega-wrap:hover .nav-link::after,
.mega-wrap.open  .nav-link::after {
  transform: scaleX(1);
  opacity: 1;
}


/* ═══════════════════════════════════════════════════════════
   CHEVRON
═══════════════════════════════════════════════════════════ */

.mega-wrap .mi {
  font-size: 17px;
  color: var(--t-secondary);
  pointer-events: none;
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    color     180ms ease;
}

.mega-wrap:hover .mi  { color: var(--t-primary); }
.mega-wrap.open  .mi  { 
  /* color: var(--t-primary);  */
  transform: rotate(180deg); 
}


/* ═══════════════════════════════════════════════════════════
   MEGA-MENU PANEL BASE
═══════════════════════════════════════════════════════════ */

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.988);

  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  overflow: hidden;

  box-shadow:
    0 2px 8px  rgba(0,0,0,0.30),
    0 16px 48px rgba(0,0,0,0.55),
    0 40px 96px rgba(0,0,0,0.40);

  opacity: 0;
  pointer-events: none;
  z-index: 400;

  transition:
    opacity   220ms ease,
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms ease;
}

/* Top brand accent rule */
.mega-menu::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-grad);
  opacity: 0.70;
  z-index: 10;
}

/* Open state */
.mega-wrap.open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  box-shadow:
    0 2px 8px  rgba(0,0,0,0.35),
    0 20px 60px rgba(0,0,0,0.65),
    0 48px 100px rgba(0,0,0,0.45);
}


/* ═══════════════════════════════════════════════════════════
   PANEL LAYOUT
═══════════════════════════════════════════════════════════ */

/* Image + content two-column */
.panel-inner {
  display: flex;
  width: 100%;
  min-height: 320px;
}

/* ── IMAGE COLUMN ── */
.panel-image {
  position: relative;
  width: 248px;
  flex-shrink: 0;
  overflow: hidden;
  border-right: 1px solid var(--panel-border);
  background: #080a12;
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  opacity: 0.72;
  filter: brightness(0.62) saturate(0.75);
  transition:
    opacity   500ms ease,
    filter    500ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-wrap.open .panel-image img {
  opacity: 0.84;
  filter: brightness(0.70) saturate(0.88);
  transform: scale(1.04);
}

/* Image label */
.panel-image-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 22px 20px;
  background: linear-gradient(to top, #0c0e17 0%, rgba(8,10,18,0) 100%);
}

.lbl-tag {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-accent);
  margin-bottom: 9px;
  opacity: 0.80;
}

.lbl-headline {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: rgba(238, 240, 248, 0.90);
}

/* ── CONTENT COLUMN ── */
.panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 0;
  gap: 22px;
  min-width: 0;
}


/* ═══════════════════════════════════════════════════════════
   SECTION: label + link grid
═══════════════════════════════════════════════════════════ */

.panel-section { display: flex; flex-direction: column; }

.section-label {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-rule);
}

.section-links {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  column-gap: 8px;
}

.section-links a {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.018em;
  color: var(--t-secondary);
  text-decoration: none;
  padding: 7px 8px 7px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    color       180ms ease,
    padding-left 260ms cubic-bezier(0.16, 1, 0.3, 1),
    background  180ms ease;
}

.section-links a:hover {
  color: var(--t-primary);
  padding-left: 7px;
}

.section-links a.featured {
  color: rgba(238, 240, 248, 0.72);
  font-weight: 500;
}

.section-links a.featured:hover {
  color: var(--t-primary);
}


/* ═══════════════════════════════════════════════════════════
   PANEL FOOTER
═══════════════════════════════════════════════════════════ */

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 30px;
  margin-top: 20px;
  background: var(--panel-bg-alt);
  border-top: 1px solid var(--panel-rule);
}

.footer-descriptor {
  font-size: 11px;
  letter-spacing: 0.025em;
  color: var(--t-muted);
}

.footer-cta {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.75;
  transition: opacity 180ms ease;
}

.footer-cta:hover { opacity: 1; }


/* ═══════════════════════════════════════════════════════════
   STAGGER
═══════════════════════════════════════════════════════════ */

@keyframes link-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mega-wrap.open .section-links a {
  animation: link-in 260ms cubic-bezier(0.16,1,0.3,1) both;
}

.mega-wrap.open .section-links a:nth-child(1)  { animation-delay:  45ms; }
.mega-wrap.open .section-links a:nth-child(2)  { animation-delay:  68ms; }
.mega-wrap.open .section-links a:nth-child(3)  { animation-delay:  88ms; }
.mega-wrap.open .section-links a:nth-child(4)  { animation-delay: 106ms; }
.mega-wrap.open .section-links a:nth-child(5)  { animation-delay: 122ms; }
.mega-wrap.open .section-links a:nth-child(6)  { animation-delay: 136ms; }
.mega-wrap.open .section-links a:nth-child(7)  { animation-delay: 148ms; }
.mega-wrap.open .section-links a:nth-child(8)  { animation-delay: 159ms; }
.mega-wrap.open .section-links a:nth-child(9)  { animation-delay: 168ms; }
.mega-wrap.open .section-links a:nth-child(10) { animation-delay: 176ms; }
.mega-wrap.open .section-links a:nth-child(11) { animation-delay: 183ms; }
.mega-wrap.open .section-links a:nth-child(12) { animation-delay: 189ms; }


/* ═══════════════════════════════════════════════════════════
   INDIVIDUAL PANEL SIZING
═══════════════════════════════════════════════════════════ */

/* Solutions */
#dd-solutions .mega-menu  { width: 840px; }

/* Industries */
#dd-industries .mega-menu    { width: 800px; }

/* Insights — wider, three editorial cards */
#dd-insights .mega-menu      { width: 820px; }

/* Company */
#dd-company .mega-menu       { width: 760px; }


/* ═══════════════════════════════════════════════════════════
   INSIGHTS PANEL  — card grid layout (no image column)
═══════════════════════════════════════════════════════════ */

.insights-inner {
  display: flex;
  flex-direction: column;
  padding: 28px 30px 0;
  gap: 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-border);
  margin: 0 -30px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  padding: 0;
  text-decoration: none;
  overflow: hidden;
  transition: background 200ms ease;
}

.insight-card:hover { background: var(--panel-hover); }

.insight-card-img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.70) saturate(0.72);
  transition: filter 400ms ease, transform 500ms cubic-bezier(0.16,1,0.3,1);
}

.insight-card:hover .insight-card-img {
  filter: brightness(0.80) saturate(0.85);
  transform: scale(1.03);
}

.insight-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insight-type {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-accent);
  opacity: 0.72;
}

.insight-title {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: rgba(238,240,248,0.78);
  transition: color 180ms ease;
}

.insight-card:hover .insight-title { color: var(--t-primary); }

.insight-meta {
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--t-muted);
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════
   SCROLLED / LIGHT NAV
═══════════════════════════════════════════════════════════ */

.nav.scrolled .mega-menu {
  background: var(--panel-bg-lt);
  border-color: var(--panel-border-lt);
  box-shadow:
    0 2px 8px  rgba(0,0,0,0.08),
    0 16px 48px rgba(0,0,0,0.12);
}

.nav.scrolled .mega-menu::before { opacity: 0.45; }

.nav.scrolled .panel-image       { border-right-color: var(--panel-border-lt); background: #e8eaf2; }
.nav.scrolled .panel-image img   { filter: brightness(0.78) saturate(0.6); }
.nav.scrolled .mega-wrap.open .panel-image img { filter: brightness(0.85) saturate(0.70); }

.nav.scrolled .panel-image-label {
  background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0) 100%);
}
.nav.scrolled .lbl-tag           { color: #6068c8; color: #000000;}
.nav.scrolled .lbl-headline      { color: rgba(10,14,40,0.82); }

.nav.scrolled .section-label     { color: var(--t-muted-lt); border-bottom-color: var(--panel-rule-lt); }
.nav.scrolled .section-links a   { color: var(--t-secondary-lt); }
.nav.scrolled .section-links a:hover { color: var(--t-primary-lt); }
.nav.scrolled .section-links a.featured { color: rgba(10,14,40,0.68); }

.nav.scrolled .panel-footer      { background: var(--panel-bg-alt-lt); border-top-color: var(--panel-rule-lt); }
.nav.scrolled .footer-descriptor { color: var(--t-muted-lt); }

.nav.scrolled .insights-grid     { background: var(--panel-border-lt); }
.nav.scrolled .insight-card      { background: var(--panel-bg-lt); }
.nav.scrolled .insight-card:hover { background: var(--panel-hover-lt); }
.nav.scrolled .insight-card-img  { filter: brightness(0.82) saturate(0.60); }
.nav.scrolled .insight-card:hover .insight-card-img { filter: brightness(0.90) saturate(0.72); }
.nav.scrolled .insight-type      { color: #5a62b8; }
.nav.scrolled .insight-title     { color: rgba(10,14,40,0.76); }
.nav.scrolled .insight-card:hover .insight-title { color: var(--t-primary-lt); }
.nav.scrolled .insight-meta      { color: var(--t-muted-lt); }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  #dd-capabilities .mega-menu,
  #dd-industries   .mega-menu,
  #dd-insights     .mega-menu,
  #dd-company      .mega-menu { width: calc(100vw - 32px); }
}

@media (max-width: 960px) {
  .mega-menu {
    left: 16px;
    right: 16px;
    transform: none !important;
    border-radius: 8px;
  }

  .mega-wrap.open .mega-menu { opacity: 1; pointer-events: auto; }

  .panel-inner    { flex-direction: column; min-height: unset; }
  .panel-image    { width: 100%; height: 150px; border-right: none; border-bottom: 1px solid var(--panel-border); }
  .panel-content  { padding: 22px 22px 0; }
  .panel-footer   { padding: 12px 22px; margin-top: 16px; }

  .insights-grid  { grid-template-columns: 1fr; }
  .insight-card-img { height: 120px; }
  .insights-inner { padding: 22px 22px 0; }
  .insights-grid  { margin: 0 -22px; }
}

@media (max-width: 600px) {
  .section-links        { --cols: 1 !important; }
  .section-links a      { font-size: 12px; }
  .panel-content        { padding: 18px 18px 0; gap: 18px; }
  .panel-footer         { margin-top: 14px; }
  .panel-image          { height: 124px; }
  .insights-inner       { padding: 18px 18px 0; }
  .insights-grid        { margin: 0 -18px; }
}

@media (max-width: 1024px) {
    
    .nav-links {
        display: none;
    }
    .fab {
        display: flex;
    }
}

