/* ============================================================
   D2Strategy — Site stylesheet
   Built on colors_and_type.css tokens. Implements the brand's
   website UI kit (nav, hero, services, stats, case study, CTA,
   footer) as static classes + parallax + scroll reveals.
   Discipline: 60% navy/neutrals, 30% support blues, <=10% orange.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
::selection { background: var(--orange-light); color: var(--navy-deep); }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--pale { background: var(--pale); }
.section--subtle { background: var(--light-bg); }
.section--navy { background: var(--navy); color: #fff; }
.muted { color: var(--fg2); }
.center { text-align: center; }
.maxw-620 { max-width: 620px; }
.maxw-720 { max-width: 720px; }
.maxw-820 { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-sans); font-weight: 700; cursor: pointer;
  border: none; border-radius: var(--radius-md); display: inline-flex;
  align-items: center; gap: 8px; transition: all .18s ease;
  font-size: 15px; padding: 11px 22px; line-height: 1; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn--lg { font-size: 17px; padding: 14px 28px; }
.btn--sm { font-size: 14px; padding: 9px 16px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--pale); color: var(--navy); transform: translateY(-1px); }
.btn-reverse { background: #fff; color: var(--navy); }
.btn-reverse:hover { background: var(--pale); color: var(--navy); transform: translateY(-1px); }
.btn-text { background: none; color: var(--d2-blue); padding: 10px 6px; }
.btn-text:hover { color: var(--navy); }
.btn .ico { width: 18px; height: 18px; }

/* ---- Badges / overline / pills ---- */
.badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); letter-spacing: .02em; display: inline-block; }
.badge--navy { background: var(--pale); color: var(--navy); }
.badge--accent { background: var(--orange-light); color: var(--orange-deep); }
.badge--solid { background: var(--navy); color: #fff; }
.badge--gray { background: var(--light-bg); color: var(--fg2); border: 1px solid var(--border); }
.overline { margin-bottom: 14px; }

.section-head { margin-bottom: 48px; }
.section-head h2 { margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { font-size: 18px; color: var(--fg2); max-width: 620px; margin: 0; line-height: 1.6; }
.section-head--center { text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   HEADER — frosted sticky nav with dropdowns ("cool menu")
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav__logo img { height: 50px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav-link {
  font-size: 15px; font-weight: 600; color: var(--fg1);
  position: relative; padding: 6px 0; display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--orange); transition: width .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link .chev { width: 15px; height: 15px; transition: transform .2s ease; }

/* dropdown */
.nav-item { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 320px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transition: all .2s ease; z-index: 60;
}
.nav-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
/* Desktop menus open on click (JS toggles .open); see main.js */
.nav-item.open .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-item.open .chev { transform: rotate(180deg); }
.nav-menu a {
  position: relative; display: block; padding: 11px 14px 11px 16px; border-radius: var(--radius-md);
  font-size: 14.5px; font-weight: 700; color: var(--navy); transition: background .15s ease, color .15s ease;
}
.nav-menu a::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: var(--orange); opacity: 0; transition: opacity .15s ease;
}
.nav-menu a:hover { background: var(--pale); color: var(--navy); }
.nav-menu a:hover::before { opacity: 1; }
.nav-menu a small { display: block; font-weight: 400; color: var(--fg2); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }

/* mega-menu (multi-column) — left-anchored to the trigger to avoid viewport overflow */
.nav-menu--mega { left: 0; right: auto; transform: translateX(0) translateY(8px);
  display: flex; gap: 8px; min-width: 560px; padding: 14px; }
.nav-item.open .nav-menu--mega { transform: translateX(0) translateY(0); }
.nav-col { flex: 1 1 180px; min-width: 176px; }
.nav-col + .nav-col { border-left: 1px solid var(--border); padding-left: 8px; }
.nav-col__h { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800;
  color: var(--fg3); padding: 4px 14px 8px; }
.nav-col__h a { color: var(--navy); text-decoration: none; }
.nav-col__h a:hover { color: var(--orange-deep); }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); transition: all .25s ease; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — navy gradient + animated mathematical field
   ============================================================ */
.hero { position: relative; background: var(--grad-navy); color: #fff; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; padding: 104px 0 112px; }
.hero__inner .overline { color: var(--orange); }
.hero h1 { color: #fff; font-size: 60px; line-height: 1.05; margin: 0 0 22px; max-width: 760px; }
.hero .lead { color: #D5E2EF; font-weight: 300; font-size: 21px; max-width: 580px; margin: 0 0 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero--compact .hero__inner { padding: 80px 0 84px; }
.hero--compact h1 { font-size: 48px; }

/* page hero (interior pages, smaller) */
.page-hero { position: relative; background: var(--grad-navy); color: #fff; overflow: hidden; }
.page-hero__inner { position: relative; z-index: 1; padding: 78px 0 70px; max-width: 820px; }
.page-hero .overline { color: var(--orange); }
.page-hero h1 { color: #fff; font-size: 46px; margin: 0 0 16px; }
.page-hero .lead { color: #D5E2EF; font-weight: 300; max-width: 640px; margin: 0; }

.math-field {
  position: absolute; pointer-events: none; z-index: 0;
  width: 680px; height: 470px; will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(var(--field-scale, 1));
  transform-origin: right top;
}
.math-field--hero { right: -10px; top: 30px; opacity: .95; }
.math-field--page { right: -20px; top: -6px; opacity: .62; --field-scale: .8; }
.math-field--band { right: -10px; bottom: -30px; top: auto; opacity: .45; --field-scale: .7; transform-origin: right bottom; }

/* faint dot grid behind the panels */
.math-field__grid {
  position: absolute; inset: 0; display: block;
  background: radial-gradient(rgba(213,226,239,.45) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 62% at 60% 45%, #000 0 45%, transparent 80%);
  mask-image: radial-gradient(70% 62% at 60% 45%, #000 0 45%, transparent 80%);
}
/* main glass panel: line chart drawing itself */
.math-field__orbit--one {
  position: absolute; display: block; right: 30px; top: 66px; width: 430px; height: 280px;
  border-radius: 16px; background-color: rgba(255,255,255,.055);border: 1px solid rgba(213,226,239,.22);box-shadow: 0 22px 54px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.1);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox%3D'0 0 430 280' xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%0A%3Cg fill%3D'none' stroke-linecap%3D'round'%3E%0A%3Cpath d%3D'M28 218 C95 205 150 208 200 172 S320 108 402 96' stroke%3D'%237FB0D6' stroke-opacity%3D'.75' stroke-width%3D'2.5' pathLength%3D'1' stroke-dasharray%3D'1'%3E%0A%3Canimate attributeName%3D'stroke-dashoffset' values%3D'1%3B0%3B0%3B1' keyTimes%3D'0%3B.35%3B.85%3B1' dur%3D'14s' repeatCount%3D'indefinite'%2F%3E%0A%3Canimate attributeName%3D'd' calcMode%3D'discrete' values%3D'M28 218 C95 205 150 208 200 172 S320 108 402 96%3BM28 214 C100 216 165 214 220 196 S330 132 402 104%3BM28 222 C90 204 150 214 210 176 S320 120 402 88' dur%3D'42s' repeatCount%3D'indefinite'%2F%3E%0A%3C%2Fpath%3E%0A%3Cpath d%3D'M28 238 C110 226 175 196 240 158 S360 92 402 70' stroke%3D'%23E47E30' stroke-opacity%3D'.9' stroke-width%3D'3' pathLength%3D'1' stroke-dasharray%3D'1'%3E%0A%3Canimate attributeName%3D'stroke-dashoffset' values%3D'1%3B0%3B0%3B1' keyTimes%3D'0%3B.4%3B.85%3B1' dur%3D'14s' repeatCount%3D'indefinite'%2F%3E%0A%3Canimate attributeName%3D'd' calcMode%3D'discrete' values%3D'M28 238 C110 226 175 196 240 158 S360 92 402 70%3BM28 230 C95 244 150 236 215 190 S345 96 402 62%3BM28 242 C120 232 190 224 250 190 S355 130 402 78' dur%3D'42s' repeatCount%3D'indefinite'%2F%3E%0A%3C%2Fpath%3E%0A%3Cpath d%3D'M28 252 C110 246 190 232 260 214 S370 182 402 172' stroke%3D'%2398A2AD' stroke-opacity%3D'.45' stroke-width%3D'2' pathLength%3D'1' stroke-dasharray%3D'1'%3E%0A%3Canimate attributeName%3D'stroke-dashoffset' values%3D'1%3B0%3B0%3B1' keyTimes%3D'0%3B.3%3B.85%3B1' dur%3D'14s' repeatCount%3D'indefinite'%2F%3E%0A%3Canimate attributeName%3D'd' calcMode%3D'discrete' values%3D'M28 252 C110 246 190 232 260 214 S370 182 402 172%3BM28 249 C105 252 180 242 250 226 S368 194 402 180%3BM28 254 C115 242 195 224 262 210 S372 172 402 164' dur%3D'42s' repeatCount%3D'indefinite'%2F%3E%0A%3C%2Fpath%3E%0A%3C%2Fg%3E%0A%3Ccircle cx%3D'402' cy%3D'70' r%3D'5' fill%3D'%23E47E30'%3E%0A%3Canimate attributeName%3D'cy' calcMode%3D'discrete' values%3D'70%3B62%3B78' dur%3D'42s' repeatCount%3D'indefinite'%2F%3E%0A%3Canimate attributeName%3D'r' values%3D'4%3B6%3B4' dur%3D'3s' repeatCount%3D'indefinite'%2F%3E%0A%3Canimate attributeName%3D'fill-opacity' values%3D'.6%3B1%3B.6' dur%3D'3s' repeatCount%3D'indefinite'%2F%3E%0A%3C%2Fcircle%3E%0A%3C%2Fsvg%3E"),
    repeating-linear-gradient(0deg, rgba(127,176,214,.13) 0 1px, transparent 1px 46px),
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.015));
  background-repeat: no-repeat; background-size: 100% 100%;
  animation: fieldFloatA 12s ease-in-out infinite;
}
/* secondary glass panel: breathing bar chart */
.math-field__wave--one {
  position: absolute; display: block; right: 420px; top: 268px; width: 206px; height: 150px;
  border-radius: 14px; background-color: rgba(255,255,255,.055);border: 1px solid rgba(213,226,239,.22);box-shadow: 0 22px 54px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.1);
  background-image: url("data:image/svg+xml,%3Csvg viewBox%3D'0 0 206 150' xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cline x1%3D'14' y1%3D'128.5' x2%3D'192' y2%3D'128.5' stroke%3D'%23D5E2EF' stroke-opacity%3D'.35'%2F%3E%3Crect x%3D'22' width%3D'24' rx%3D'3' fill%3D'%23103A64' fill-opacity%3D'.95' y%3D'82' height%3D'46'%3E%3Canimate attributeName%3D'height' values%3D'46%3B60%3B46' dur%3D'9s' begin%3D'0s' repeatCount%3D'indefinite'%2F%3E%3Canimate attributeName%3D'y' values%3D'82%3B68%3B82' dur%3D'9s' begin%3D'0s' repeatCount%3D'indefinite'%2F%3E%3C%2Frect%3E%3Crect x%3D'56' width%3D'24' rx%3D'3' fill%3D'%232C6CA6' fill-opacity%3D'.95' y%3D'56' height%3D'72'%3E%3Canimate attributeName%3D'height' values%3D'72%3B60%3B72' dur%3D'11s' begin%3D'-3s' repeatCount%3D'indefinite'%2F%3E%3Canimate attributeName%3D'y' values%3D'56%3B68%3B56' dur%3D'11s' begin%3D'-3s' repeatCount%3D'indefinite'%2F%3E%3C%2Frect%3E%3Crect x%3D'90' width%3D'24' rx%3D'3' fill%3D'%237FB0D6' fill-opacity%3D'.95' y%3D'72' height%3D'56'%3E%3Canimate attributeName%3D'height' values%3D'56%3B70%3B56' dur%3D'10s' begin%3D'-6s' repeatCount%3D'indefinite'%2F%3E%3Canimate attributeName%3D'y' values%3D'72%3B58%3B72' dur%3D'10s' begin%3D'-6s' repeatCount%3D'indefinite'%2F%3E%3C%2Frect%3E%3Crect x%3D'124' width%3D'24' rx%3D'3' fill%3D'%2398A2AD' fill-opacity%3D'.8' y%3D'44' height%3D'84'%3E%3Canimate attributeName%3D'height' values%3D'84%3B72%3B84' dur%3D'12s' begin%3D'-2s' repeatCount%3D'indefinite'%2F%3E%3Canimate attributeName%3D'y' values%3D'44%3B56%3B44' dur%3D'12s' begin%3D'-2s' repeatCount%3D'indefinite'%2F%3E%3C%2Frect%3E%3Crect x%3D'158' width%3D'24' rx%3D'3' fill%3D'%23E47E30' fill-opacity%3D'.95' y%3D'32' height%3D'96'%3E%3Canimate attributeName%3D'height' values%3D'96%3B110%3B96' dur%3D'10s' begin%3D'-5s' repeatCount%3D'indefinite'%2F%3E%3Canimate attributeName%3D'y' values%3D'32%3B18%3B32' dur%3D'10s' begin%3D'-5s' repeatCount%3D'indefinite'%2F%3E%3C%2Frect%3E%3C%2Fsvg%3E"), linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.015));
  background-repeat: no-repeat; background-size: 100% 100%;
  animation: fieldFloatB 15s ease-in-out -5s infinite; z-index: 2;
}
/* floating KPI chip */
.math-field__node--one {
  position: absolute; display: block; right: 372px; top: 108px; width: 176px; height: 72px;
  border-radius: 13px; background-color: rgba(255,255,255,.055);border: 1px solid rgba(213,226,239,.22);box-shadow: 0 22px 54px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.1);
  background-image: url("data:image/svg+xml,%3Csvg viewBox%3D'0 0 176 72' xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%0A%3Ctext x%3D'16' y%3D'26' font-family%3D'Segoe UI%2CArial%2Csans-serif' font-size%3D'10.5' letter-spacing%3D'1.6' fill%3D'%23B6C5D6'%3ENRX SHARE%3C%2Ftext%3E%0A%3Ctext x%3D'15' y%3D'54' font-family%3D'Segoe UI%2CArial%2Csans-serif' font-size%3D'23' font-weight%3D'700' fill%3D'%23FFFFFF'%3E24.8%25%3C%2Ftext%3E%0A%3Ctext x%3D'92' y%3D'54' font-family%3D'Segoe UI%2CArial%2Csans-serif' font-size%3D'12' font-weight%3D'700' fill%3D'%23E8955C'%3E%26%239650%3B 2.1%3C%2Ftext%3E%0A%3Cpolyline points%3D'128%2C50 138%2C42 146%2C46 156%2C32 166%2C36 172%2C24' fill%3D'none' stroke%3D'%23E47E30' stroke-width%3D'2.5' stroke-linecap%3D'round' stroke-linejoin%3D'round'%2F%3E%0A%3Ccircle cx%3D'172' cy%3D'24' r%3D'3.5' fill%3D'%23E47E30'%3E%0A%3Canimate attributeName%3D'fill-opacity' values%3D'.5%3B1%3B.5' dur%3D'2.6s' repeatCount%3D'indefinite'%2F%3E%0A%3C%2Fcircle%3E%0A%3C%2Fsvg%3E"), linear-gradient(rgba(16,58,100,.5), rgba(16,58,100,.35));
  background-repeat: no-repeat; background-size: 100% 100%;
  animation: fieldFloatC 10s ease-in-out -3s infinite; z-index: 2;
}
/* retired layers */
.math-field::before, .math-field::after,
.math-field__grid::before, .math-field__grid::after,
.math-field__orbit--two, .math-field__wave--two,
.math-field__node--two, .math-field__node--three { display: none; }

@keyframes fieldFloatA { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-10px,0); } }
@keyframes fieldFloatB { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,11px,0); } }
@keyframes fieldFloatC { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-7px,0); } }

/* scale down instead of disappearing on smaller screens */
@media (max-width: 1280px) {
  .math-field--hero { --field-scale: .82; opacity: .8; }
  .math-field--page { --field-scale: .66; opacity: .5; }
}
@media (max-width: 1024px) {
  .math-field--hero { --field-scale: .66; opacity: .55; right: -60px; }
  .math-field--page { --field-scale: .55; opacity: .4; right: -60px; }
  .math-field--band { --field-scale: .55; opacity: .35; }
}
@media (max-width: 700px) {
  .math-field--hero, .math-field--page { --field-scale: .52; opacity: .3; right: -110px; }
}

/* ---- Trust bar ---- */
.trustbar { background: #fff; border-bottom: 1px solid var(--border); }
.trustbar__row { display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; padding: 20px 0; }
.trust-item { display: flex; align-items: center; gap: 9px; color: var(--fg2); font-size: 14px; font-weight: 600; }
.trust-item .ico { width: 17px; height: 17px; color: var(--d2-blue); }

/* ============================================================
   CARDS / GRID
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.card__icon { width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--pale);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card__icon .ico { width: 24px; height: 24px; color: var(--navy); }
.card h3 { font-size: 20px; margin: 0 0 10px; }
.card p { font-size: 15px; color: var(--fg2); line-height: 1.6; margin: 0 0 16px; }
.card__more { font-size: 14px; font-weight: 700; color: var(--d2-blue); display: inline-flex; align-items: center; gap: 6px; }
.card__more .ico { width: 15px; height: 15px; }
.card__more:hover { color: var(--navy); }

/* ---- Animated bottom line on card hover (sweeps left -> right, medium speed) ---- */
.card, .post-card, .subcard, .team-card { position: relative; overflow: hidden; }
.card::after, .post-card::after, .subcard::after, .team-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--orange); transition: width .4s ease; z-index: 3; pointer-events: none;
}
.card:hover::after, .post-card:hover::after, .subcard:hover::after, .team-card:hover::after { width: 100%; }

/* ---- Stats band ---- */
.stats { background: var(--pale); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 64px 0; }
.stat { text-align: center; }
.stat__n { font-size: 46px; font-weight: 700; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.stat--accent .stat__n { color: var(--orange); }
.stat__l { font-size: 14px; color: var(--fg2); margin-top: 10px; font-weight: 600; }

/* ---- Two-column case study + chart ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { margin: 0 0 18px; line-height: 1.2; }
.split p { font-size: 17px; color: var(--fg2); line-height: 1.7; margin: 0 0 24px; }
.tags { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.chart-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px; box-shadow: var(--shadow-md); }
.chart-panel__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.chart-panel__head .t { font-weight: 700; color: var(--navy); font-size: 16px; }
.chart-panel__head .s { font-size: 12px; color: var(--fg3); }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--fg2); margin-bottom: 20px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-bars { display: flex; align-items: flex-end; gap: 20px; height: 180px; }
.chart-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart-bars .bars { width: 100%; display: flex; gap: 6px; align-items: flex-end; height: 150px; }
.chart-bars .bar { flex: 1; border-radius: 3px 3px 0 0; }
.chart-bars .bar--base { background: var(--d2-blue); }
.chart-bars .bar--key { background: var(--orange); }
.chart-bars .lbl { font-size: 12px; color: var(--fg2); }

/* ---- CTA band ---- */
.cta-band {
  position: relative; overflow: hidden; background: var(--navy); padding: 72px 0; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 560px; height: 360px;
  opacity: .24; pointer-events: none; border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgba(127,176,214,.28) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(127,176,214,.22) 0 1px, transparent 1px 32px);
  transform: rotate(-14deg);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin: 0 0 16px; letter-spacing: -.01em; }
.cta-band p { font-size: 19px; font-weight: 300; color: #D5E2EF; margin: 0 0 32px; line-height: 1.6; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PROSE (service / legal / mission / blog body)
   ============================================================ */
.prose { max-width: 760px; }
.prose.center-col { margin: 0 auto; }
.prose h2 { font-size: 30px; margin: 44px 0 14px; }
.prose h3 { font-size: 22px; margin: 32px 0 10px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--charcoal); margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { font-size: 17px; line-height: 1.7; color: var(--charcoal); margin-bottom: 8px; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--navy); }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--orange);
  font-size: 19px; color: var(--navy); font-style: italic; }
.prose strong { color: var(--navy-deep); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; color: var(--charcoal); }
.checklist .ico { width: 22px; height: 22px; flex: 0 0 22px; color: var(--success); margin-top: 1px; }
.checklist--2 { grid-template-columns: 1fr 1fr; }

/* feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 72px; }
.feature-row--rev .feature-row__media { order: -1; }
.media-card { background: var(--grad-navy); border-radius: var(--radius-lg); min-height: 280px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.media-card .ico { width: 96px; height: 96px; color: rgba(255,255,255,.92); }
.mini-math {
  position: absolute; right: -28px; bottom: -28px; width: 190px; height: 150px;
  opacity: .35; pointer-events: none;
  background:
    radial-gradient(circle at 72% 28%, rgba(228,126,48,.95) 0 5px, transparent 6px),
    radial-gradient(circle at 28% 62%, rgba(127,176,214,.9) 0 5px, transparent 6px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 190 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 118 C68 82 112 82 158 34' fill='none' stroke='%237FB0D6' stroke-width='4' stroke-linecap='round' stroke-opacity='.72'/%3E%3Cpath d='M30 34 C68 70 112 70 158 118' fill='none' stroke='%23E47E30' stroke-width='4' stroke-linecap='round' stroke-opacity='.72'/%3E%3Cpath d='M52 58 L136 58 M54 94 L136 94' stroke='%23ffffff' stroke-width='2' stroke-opacity='.48' stroke-linecap='round'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(127,176,214,.26) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(127,176,214,.22) 0 1px, transparent 1px 22px);
  background-size: auto, auto, 78% 78%, auto, auto;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  border: 1px solid rgba(127,176,214,.32); border-radius: 50%;
  transform: rotate(-16deg); animation: miniMath 16s ease-in-out infinite;
}
.mini-math::before,
.mini-math::after {
  content: ""; position: absolute; border-radius: 50%; inset: 24px 16px;
  border: 1.5px solid rgba(255,255,255,.6); transform: rotate(28deg);
}
.mini-math::after {
  inset: 46px 22px; border-color: rgba(228,126,48,.7); transform: rotate(-22deg);
}
@keyframes miniMath {
  0%, 100% { transform: rotate(-16deg) translate3d(0,0,0); }
  50% { transform: rotate(-8deg) translate3d(-8px,6px,0); }
}

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 24px; transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff; background: var(--grad-navy); letter-spacing: .02em; }
.team-card h3 { font-size: 19px; margin: 0 0 4px; }
.team-card .role { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); margin-bottom: 12px; }
.team-card .bio { font-size: 14.5px; color: var(--fg2); line-height: 1.6; margin: 0; }

/* ---- Tech / logo strip ---- */
.tech-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tech-chip { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 10px 20px; font-weight: 700; color: var(--navy); font-size: 15px; box-shadow: var(--shadow-sm); }

/* ============================================================
   BLOG
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.post-card__thumb { aspect-ratio: 5/2; background: var(--grad-navy); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__thumb .ico { width: 54px; height: 54px; color: rgba(255,255,255,.85); }
.post-card__thumb .mini-math { width: 160px; height: 124px; right: -18px; bottom: -18px; opacity: .28; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin-bottom: 10px; }
.post-card h3 { font-size: 19px; line-height: 1.3; margin: 0 0 10px; }
.post-card p { font-size: 14.5px; color: var(--fg2); line-height: 1.6; margin: 0 0 16px; flex: 1; }
.post-card__more { font-size: 14px; font-weight: 700; color: var(--d2-blue); display: inline-flex; align-items: center; gap: 6px; }
.post-card__more .ico { width: 15px; height: 15px; }

.post-hero { background: var(--grad-navy); color: #fff; position: relative; overflow: hidden; }
.post-hero__inner { position: relative; z-index: 1; padding: 70px 0 60px; max-width: 800px; }
.post-hero .post-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--orange); margin-bottom: 16px; }
.post-hero h1 { color: #fff; font-size: 42px; line-height: 1.15; margin: 0 0 18px; }
.post-hero .post-meta { font-size: 14px; color: var(--fg-on-navy-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.post-body { padding: 64px 0; }
.post-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--d2-blue); margin-bottom: 32px; font-size: 14px; }
.post-back .ico { width: 16px; height: 16px; }
.post-featured { max-width: 900px; margin: 0 auto 44px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.post-featured img { width: 100%; aspect-ratio: 5/2; object-fit: cover; display: block; background: var(--grad-navy); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.contact-card .ico-wrap { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--pale); display: flex; align-items: center; justify-content: center; flex: 0 0 44px; }
.contact-card .ico-wrap .ico { width: 22px; height: 22px; color: var(--navy); }
.contact-card .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fg3); margin-bottom: 4px; }
.contact-card .value { font-size: 18px; font-weight: 700; color: var(--navy); }
.contact-card .value a { color: var(--navy); }
.contact-card .value a:hover { color: var(--orange-deep); }

.form-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--charcoal); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--d2-blue); box-shadow: 0 0 0 3px rgba(44,108,166,.18);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: #fff; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(6, 1fr); gap: 26px; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--fg-on-navy-muted); font-size: 14px; line-height: 1.6; max-width: 280px; margin: 0 0 16px; }
.footer-brand .social { display: flex; gap: 10px; }
.footer-brand .social a { width: 36px; height: 36px; border-radius: var(--radius-md); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.footer-brand .social a:hover { background: var(--orange); }
.footer-brand .social .ico { width: 18px; height: 18px; color: #fff; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sky); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--fg-on-navy-muted); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-on-navy-muted); }
.footer-bottom .tag { text-transform: uppercase; letter-spacing: .18em; }

/* ============================================================
   SCROLL REVEAL (subtle, professional)
   ============================================================ */
/* Progressive enhancement: only hide when JS is active (html.js).
   Without JS the content is always visible (SEO / no-JS safe). */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .math-field, .math-field *, .mini-math { animation: none !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .grid-3, .grid-4, .post-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .split, .feature-row, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-row--rev .feature-row__media { order: 0; }
  .checklist--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 46px; }
  .hero .lead { font-size: 19px; }
  .math-field--hero { right: -260px; top: -40px; --field-scale: .82; }
  .math-field--page { right: -260px; bottom: -170px; --field-scale: .78; }
  .math-field--band { right: -260px; --field-scale: .82; }
}

@media (max-width: 860px) {
  .container { padding: 0 22px; }
  .section { padding: 64px 0; }
  .nav__actions .btn-primary { display: none; }
  .hamburger { display: flex; }
  .nav__links {
    position: fixed; top: 88px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 22px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease; box-shadow: var(--shadow-lg);
  }
  .nav__links.open { transform: translateX(0); }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--border); width: 100%; justify-content: space-between; }
  .nav-link::after { display: none; }
  .nav-item { width: 100%; }
  .nav-menu {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0 0 8px 12px;
    min-width: 0; display: none;
  }
  .nav-item.open .nav-menu { display: block; }
  .nav-item:hover .nav-menu { opacity: 1; }
  /* mega-menu stacks to a single column on mobile */
  .nav-menu--mega { position: static; transform: none; min-width: 0; display: none; flex-direction: column; gap: 0; padding: 0 0 8px 12px; }
  .nav-item.open .nav-menu--mega { display: flex; }
  .nav-col + .nav-col { border-left: none; padding-left: 0; margin-top: 6px; }
  .nav-col__h { padding: 8px 14px 4px; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .post-grid, .team-grid, .stats__grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .page-hero h1, .post-hero h1 { font-size: 34px; }
  .math-field--hero { right: -410px; top: -80px; opacity: .55; --field-scale: .72; }
  .math-field--page { right: -380px; bottom: -190px; opacity: .48; --field-scale: .68; }
  .math-field--band { right: -370px; opacity: .28; --field-scale: .68; }
  .math-field__wave { width: 430px; }
  .display { font-size: 44px; }
  h1, .h1 { font-size: 36px; }
  h2, .h2 { font-size: 28px; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   DASHBOARD MOCKUPS (See Our Work) — D2Strategy-branded BI
   visuals, recreated in CSS. No third-party branding.
   ============================================================ */
.dash { border:1px solid var(--border); border-radius:12px; overflow:hidden; box-shadow:var(--shadow-lg); background:#fff; }
.dash__bar { display:flex; align-items:center; gap:10px; padding:11px 16px; background:var(--navy); color:#fff; }
.dash__dots { display:flex; gap:6px; }
.dash__dots i { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.32); display:inline-block; }
.dash__title { font-size:13px; font-weight:700; letter-spacing:.02em; }
.dash__chip { margin-left:auto; font-size:11px; background:rgba(255,255,255,.15); padding:3px 11px; border-radius:999px; }
.dash__body { padding:16px; background:var(--light-bg); }
.dash__kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:12px; }
.kpi { background:#fff; border:1px solid var(--border); border-radius:8px; padding:11px 13px; }
.kpi .l { font-size:10px; color:var(--fg3); text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.kpi .v { font-size:23px; font-weight:700; color:var(--navy); line-height:1.05; margin-top:5px; letter-spacing:-.01em; }
.kpi .d { font-size:11px; font-weight:700; margin-top:3px; }
.kpi .d.up { color:var(--success); } .kpi .d.down { color:var(--danger); } .kpi .d.accent { color:var(--orange-deep); }
.dash__row { display:grid; grid-template-columns:1.7fr 1fr; gap:12px; }
.panel { background:#fff; border:1px solid var(--border); border-radius:8px; padding:14px; }
.panel .h { font-size:12px; font-weight:700; color:var(--navy); margin-bottom:12px; display:flex; justify-content:space-between; }
.panel .h span { color:var(--fg3); font-weight:400; }
.dbars { display:flex; align-items:flex-end; gap:12px; height:118px; }
.dbars .c { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; }
.dbars .bk { width:100%; display:flex; gap:4px; align-items:flex-end; height:96px; }
.dbars .b { flex:1; border-radius:3px 3px 0 0; }
.dbars .b1 { background:var(--d2-blue); } .dbars .b2 { background:var(--orange); } .dbars .b3 { background:var(--sky); }
.dbars .lb { font-size:10px; color:var(--fg2); }
.donut { width:116px; height:116px; border-radius:50%; margin:4px auto 0;
  background:conic-gradient(var(--navy) 0 44%, var(--d2-blue) 44% 70%, var(--sky) 70% 89%, var(--orange) 89% 100%); position:relative; }
.donut::after { content:""; position:absolute; inset:23px; background:#fff; border-radius:50%; }
.legend { display:flex; flex-direction:column; gap:7px; font-size:11px; color:var(--fg2); margin-top:12px; }
.legend i { width:9px; height:9px; border-radius:2px; display:inline-block; margin-right:7px; vertical-align:middle; }
.hbars { display:flex; flex-direction:column; gap:11px; }
.hbar { display:flex; align-items:center; gap:9px; font-size:11px; }
.hbar .nm { width:70px; color:var(--fg2); flex:0 0 70px; }
.hbar .tr { flex:1; height:10px; background:var(--pale); border-radius:999px; overflow:hidden; }
.hbar .fl { height:100%; border-radius:999px; background:var(--d2-blue); }
.hbar .fl.key { background:var(--orange); }
.hbar .pct { width:34px; text-align:right; font-weight:700; color:var(--navy); }
.spark { width:100%; height:70px; display:block; }
.dtable { width:100%; font-size:11px; border-collapse:collapse; }
.dtable td, .dtable th { padding:7px 8px; border-bottom:1px solid var(--border); text-align:left; }
.dtable th { color:var(--fg3); text-transform:uppercase; font-size:10px; letter-spacing:.05em; }
.dtable tr:last-child td { border-bottom:none; }
.dtable .num { text-align:right; font-weight:700; color:var(--navy); }
.dtable .pos { color:var(--success); } .dtable .neg { color:var(--danger); }
@media (max-width: 560px){ .dash__kpis{ grid-template-columns:repeat(3,1fr); } .dash__row{ grid-template-columns:1fr; } }

/* ============================================================
   Capability groups (home — deep expertise) + refined dashboards
   ============================================================ */
.cap-group + .cap-group { margin-top: 44px; }
.cap-group__head { display:flex; gap:16px; align-items:flex-start; margin-bottom:22px; }
.cap-group__icon { width:54px; height:54px; border-radius:12px; background:var(--grad-navy);
  display:flex; align-items:center; justify-content:center; flex:0 0 54px; box-shadow:var(--shadow-sm); }
.cap-group__icon .ico { width:26px; height:26px; color:#fff; }
.cap-group__head h3 { font-size:24px; margin:0 0 4px; }
.cap-group__head p { color:var(--fg2); margin:0; font-size:15px; max-width:640px; }
.subcard { background:#fff; border:1px solid var(--border); border-top:3px solid var(--d2-blue);
  border-radius:10px; padding:22px; transition:transform .2s ease, box-shadow .2s ease; height:100%; }
.subcard:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.subcard.accent { border-top-color:var(--orange); }
.subcard h4 { font-size:17px; margin:0 0 8px; }
.subcard p { font-size:14px; color:var(--fg2); line-height:1.6; margin:0; }

/* ---- Refined dashboard mockups (full-width, cleaner) ---- */
.work-item + .work-item { margin-top: 64px; }
.work-item__intro { max-width: 760px; margin: 0 0 26px; }
.work-item__intro h2 { margin: 0 0 10px; }
.work-item__intro p { font-size:17px; color:var(--fg2); line-height:1.65; margin:0 0 16px; }
.dash__kpis { grid-template-columns: repeat(4, 1fr); }
.dash__grid3 { display:grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap:12px; }
.panel { display:flex; flex-direction:column; }
.panel .body { flex:1; display:flex; flex-direction:column; justify-content:center; }
.plot { position:relative; padding-top:6px; }
.plot--grid { background:
  linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 25% ; background-color:transparent; }
.dbars { height:150px; align-items:flex-end; }
.dbars .bk { height:130px; }
.dbars .val { font-size:10px; font-weight:700; color:var(--navy); }
.donut { width:150px; height:150px; }
.donut::after { inset:30px; }
.donut__c { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.donut__c b { font-size:20px; color:var(--navy); line-height:1; }
.donut__c span { font-size:10px; color:var(--fg3); }
.donut-wrap { position:relative; width:150px; margin:0 auto; }
.area { width:100%; height:auto; display:block; }
@media (max-width: 860px){ .dash__kpis{ grid-template-columns:repeat(2,1fr); } .dash__grid3{ grid-template-columns:1fr; } }

/* ---- Flow / architecture diagrams (capability pages) ---- */
.flow { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; padding:12px 4px 4px; }
.flow--wrap { gap:6px; }
.flow__col { display:flex; flex-direction:column; gap:7px; }
.flow__chip { background:#fff; border:1px solid var(--border); border-radius:6px; padding:6px 11px; font-size:11px; font-weight:700; color:var(--d2-blue); text-align:center; }
.flow__node { background:#fff; border:1px solid var(--border); border-top:3px solid var(--d2-blue); border-radius:8px; padding:9px 13px; min-width:90px; text-align:center; box-shadow:var(--shadow-sm); }
.flow__node b { display:block; font-size:12.5px; color:var(--navy); line-height:1.2; }
.flow__node span { display:block; font-size:10px; color:var(--fg2); margin-top:2px; }
.flow__node--gold { border-top-color:var(--navy); }
.flow__node--accent { border-top-color:var(--orange); background:var(--orange-light); }
.flow__node--accent b { color:var(--orange-deep); }
.flow__arr { color:var(--d2-blue); display:inline-flex; align-items:center; flex:0 0 auto; }
.flow__arr .ico { width:18px; height:18px; }
.flow__arr--accent { color:var(--orange); }
.flow__rail { margin-top:14px; text-align:center; font-size:11.5px; color:var(--fg2); border-top:1px dashed var(--border); padding-top:11px; }
@media (max-width: 560px){ .flow__node{ min-width:0; } .flow{ gap:6px; } }

/* ---- Subcard as a link (home capability subcards) ---- */
a.subcard { display:block; text-decoration:none; color:inherit; }
a.subcard:hover h4 { color:var(--navy); }
.subcard__more { display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-size:13px; font-weight:700; color:var(--d2-blue); }
.subcard__more .ico { width:14px; height:14px; }

/* base icon size (descendant selectors override) */
.ico { width:18px; height:18px; flex:none; vertical-align:middle; }

/* AI stack capability cards (folded Capabilities pages) */
.card__list { margin: 12px 0 0; padding-left: 18px; list-style: disc; }
.card__list li { font-size: 14px; color: var(--fg2); margin-bottom: 6px; line-height: 1.5; }

/* Anchored deep-links from the mega-menu land below the sticky header */
[id] { scroll-margin-top: 96px; }

/* ---- Solutions product panel menu ---- */
.nav-menu--panel {
  width: 740px; min-width: 0; padding: 0; overflow: hidden;
  left: 50%; transform: translateX(-50%) translateY(8px);
}
.nav-item.open .nav-menu--panel { transform: translateX(-50%) translateY(0); }
.nav-panel__bar {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  background: var(--navy); padding: 13px 20px 12px;
  border-bottom: 3px solid var(--orange);
}
.nav-panel__bar strong {
  color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
}
.nav-panel__bar em { font-style: normal; color: var(--fg-on-navy-muted); font-size: 12.5px; line-height: 1.4; }
.nav-panel__body { display: flex; }
.nav-panel__list {
  flex: 0 0 236px; padding: 12px 10px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px; background: var(--light-bg);
}
.nav-menu .nav-panel__item { font-size: 15px; }
.nav-panel__item.is-active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.nav-panel__item.is-active::before { opacity: 1; }
.nav-panel__detail { flex: 1 1 auto; position: relative; padding: 20px 24px 18px; min-height: 232px; }
.nav-panel__pane { display: none; }
.nav-panel__pane.is-active { display: block; }
.nav-panel__kicker {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--orange-deep);
}
.nav-panel__pane h4 { margin: 4px 0 8px; font-size: 20px; color: var(--navy); }
.nav-panel__pane p { margin: 0 0 10px; font-size: 13.5px; font-weight: 400; color: var(--fg2); line-height: 1.6; }
.nav-panel__pane ul { margin: 0; padding-left: 18px; }
.nav-panel__pane li { font-size: 13px; color: var(--fg2); margin-bottom: 4px; }
.nav-menu a.nav-panel__more {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; margin-top: 12px;
  font-size: 13.5px; color: var(--orange-deep); background: none;
}
.nav-menu a.nav-panel__more::before { display: none; }
.nav-menu a.nav-panel__more:hover { background: none; color: var(--navy); }
.nav-panel__more svg { width: 15px; height: 15px; }

@media (max-width: 860px) {
  /* product panel collapses to a simple product list on mobile */
  .nav-menu--panel { position: static; transform: none; width: auto; display: none; }
  .nav-item.open .nav-menu--panel { display: block; }
  .nav-panel__bar, .nav-panel__detail { display: none; }
  .nav-panel__body { display: block; }
  .nav-panel__list { border-right: none; background: none; padding: 0 0 8px 12px; }
}

/* BI platform logo chips */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin: 32px 0; width: 100%; }
.logo-chip {
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); font-weight: 700; color: var(--navy); font-size: 16px;
}
.logo-chip__mark {
  width: 38px; height: 38px; display: inline-block; background: var(--navy);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
@media (max-width: 640px) {
  .logo-row { gap: 18px; margin: 24px 0; }
  .logo-chip { padding: 14px 20px; font-size: 15px; }
  .logo-chip__mark { width: 30px; height: 30px; }
}
.model-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }

/* Model expertise tiles */
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model-tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 20px 18px; transition: transform .15s ease, box-shadow .15s ease;
}
.model-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.model-tile img { width: 40px; height: 40px; object-fit: contain; display: block; margin-bottom: 12px; }
.model-tile h3 { font-size: 15.5px; margin: 0 0 2px; color: var(--navy); }
.model-tile__vendor { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--fg2); margin-bottom: 8px; }
.model-tile p { font-size: 12.5px; color: var(--fg2); line-height: 1.5; margin: 0; }
@media (max-width: 1100px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Embedded live sample app ---- */
.app-demo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.app-demo__tabs {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.app-demo__tab {
  flex: 1 0 170px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--fg2);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.app-demo__tab span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: inherit;
  line-height: 1.15;
}
.app-demo__tab small {
  display: block;
  margin-top: 4px;
  color: var(--fg3);
  font-size: 12px;
  line-height: 1.25;
}
.app-demo__tab:hover,
.app-demo__tab:focus-visible {
  background: var(--pale);
  color: var(--navy);
  outline: none;
}
.app-demo__tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.app-demo__tab.is-active small { color: var(--fg-on-navy-muted); }
.app-demo__window {
  background: var(--navy-deep);
}
.app-demo__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #d8e5f1;
}
.app-demo__dots {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}
.app-demo__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.48);
}
.app-demo__dots i:first-child { background: var(--orange); }
.app-demo__chrome-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.app-demo__pane {
  background: #fff;
}
.app-demo__pane iframe {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 520px;
  border: 0;
  background: #fff;
}
.app-demo__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.app-demo__footer p {
  margin: 0;
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}
.app-demo__open {
  flex: 0 0 auto;
  color: var(--d2-blue);
  font-size: 14px;
  font-weight: 700;
}
.app-demo__open:hover { color: var(--navy); }
@media (max-width: 760px) {
  .app-demo__tabs { padding: 8px; }
  .app-demo__tab { flex-basis: 156px; }
  .app-demo__pane iframe {
    height: 70vh;
    min-height: 440px;
  }
  .app-demo__footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .app-demo__footer p { text-align: left; }
}
