/* =========================================================
   JD Navigation 2026
   Scoped to #jd-nav-2026 so legacy theme CSS cannot bleed in.
   ========================================================= */

#jd-nav-2026,
#jd-nav-2026 * {
	box-sizing: border-box;
}

#jd-nav-2026 {
	/* Mirrors the theme's .container1600 so the nav lines up with page content:
	   max-width 1600, no gutter above 1630, 30px below it, 25px below 767. */
	--jdn-max: 1600px;
	--jdn-pad: 0px;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1002;
	font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Neutralize the theme's global `nav` and link rules */
#jd-nav-2026 .jdn-bar {
	position: relative;
	display: block;
	padding: 0;
	margin: 0;
	border-radius: 0;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	box-shadow: none;
}

#jd-nav-2026 a {
	color: inherit;
	text-decoration: none;
	font-weight: inherit;
	font-size: inherit;
	text-transform: none;
	padding: 0;
	position: static;
	display: inline;
	white-space: normal;
}

#jd-nav-2026 a:hover::after,
#jd-nav-2026 a::after {
	content: none;
}

#jd-nav-2026 button {
	font-family: inherit;
	cursor: pointer;
	background: none;
	border: none;
	margin: 0;
	color: inherit;
}

#jd-nav-2026 img {
	display: block;
	max-width: 100%;
	height: auto;
}

#jd-nav-2026 svg {
	display: block;
	flex-shrink: 0;
}

/* ---------- Bar ---------- */
#jd-nav-2026 .jdn-bar__inner {
	max-width: var(--jdn-max);
	margin: 0 auto;
	padding: 0 var(--jdn-pad);
	height: 72px;
	display: flex;
	align-items: center;
	gap: 24px;
}

#jd-nav-2026 .jdn-logo {
	flex-shrink: 0;
	display: flex;
}

#jd-nav-2026 .jdn-logo img {
	height: 40px;
	width: auto;
	display: block;
}

/* The monogram only stands in for the wordmark on very narrow screens.
   Selector must include `img` to outrank `#jd-nav-2026 .jdn-logo img`. */
#jd-nav-2026 .jdn-logo img.jdn-logo__mark {
	display: none;
}

#jd-nav-2026 .jdn-links {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

#jd-nav-2026 .jdn-menu {
	position: relative;
}

#jd-nav-2026 .jdn-link {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: #3A3A3F;
	background: transparent;
	padding: 10px 12px;
	border-radius: 8px;
	white-space: nowrap;
	transition: color 160ms, background 160ms;
}

#jd-nav-2026 .jdn-link:hover,
#jd-nav-2026 .jdn-link.is-open {
	color: #0E0E10;
	background: rgba(14, 14, 16, .04);
}

#jd-nav-2026 .jdn-chev {
	transition: transform 220ms cubic-bezier(.2, .7, .2, 1);
}

#jd-nav-2026 .jdn-link.is-open .jdn-chev,
#jd-nav-2026 .jdn-acc__btn[aria-expanded="true"] .jdn-chev {
	transform: rotate(180deg);
}

/* ---------- CTAs ---------- */
#jd-nav-2026 .jdn-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

#jd-nav-2026 .jdn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 999px;
	white-space: nowrap;
	transition: all 220ms cubic-bezier(.2, .7, .2, 1);
}

#jd-nav-2026 .jdn-cta--ghost {
	color: #0E0E10;
	padding: 11px 16px;
	border: 1px solid #DCDCE0;
	background: transparent;
}

#jd-nav-2026 .jdn-cta--ghost:hover {
	border-color: #0E0E10;
	color: #0E0E10;
}

#jd-nav-2026 .jdn-cta--solid {
	color: #fff;
	background: #0E0E10;
	padding: 12px 20px;
	border: 1px solid #0E0E10;
}

#jd-nav-2026 .jdn-cta--solid:hover {
	background: #000;
	border-color: #000;
	color: #fff;
	box-shadow: 0 8px 24px rgba(14, 14, 16, .18);
}

#jd-nav-2026 .jdn-burger {
	display: none;
	align-items: center;
	justify-content: center;
	border: 1px solid #DCDCE0;
	border-radius: 8px;
	padding: 9px 10px;
	background: none;
}

/* ---------- Mega panels ---------- */
#jd-nav-2026 .jdn-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 72px;
	background: #fff;
	border-bottom: 1px solid #ECECEF;
	box-shadow: 0 32px 64px rgba(14, 14, 16, .10);
	/* Closed state. `visibility` (not `display`) so it can transition, and so
	   the links stay out of the tab order while the panel is closed. */
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	pointer-events: none;
	transition: opacity 180ms cubic-bezier(.2, .7, .2, 1),
		transform 240ms cubic-bezier(.2, .7, .2, 1),
		visibility 0s linear 240ms;
}

#jd-nav-2026 .jdn-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition: opacity 200ms cubic-bezier(.2, .7, .2, 1),
		transform 260ms cubic-bezier(.2, .7, .2, 1),
		visibility 0s;
}

/* Panel contents drift up a touch behind the panel itself. */
#jd-nav-2026 .jdn-panel.is-open .jdn-panel__col {
	animation: jdn-rise 320ms cubic-bezier(.2, .7, .2, 1) both;
}

#jd-nav-2026 .jdn-panel.is-open .jdn-panel__col--links {
	animation-delay: 40ms;
}

#jd-nav-2026 .jdn-panel.is-open .jdn-promo {
	animation-delay: 80ms;
}

@keyframes jdn-rise {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Note: swapping rail groups re-displays a links column, which replays
   jdn-rise on it. That is the crossfade between capability groups. */

#jd-nav-2026 .jdn-panel__inner {
	max-width: var(--jdn-max);
	margin: 0 auto;
	padding: 36px var(--jdn-pad) 40px;
	display: grid;
	grid-template-columns: 300px 1fr 300px;
	gap: 48px;
	position: relative;
}

#jd-nav-2026 .jdn-panel__inner--split {
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	padding: 48px var(--jdn-pad) 52px;
}

#jd-nav-2026 .jdn-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #8A8A92;
	margin-bottom: 16px;
}

/* Rail (left column) */
#jd-nav-2026 .jdn-panel__col--rail {
	background: #F7F7F8;
	border-right: 1px solid #ECECEF;
	margin: -36px 0 -40px calc(-1 * (var(--jdn-pad) + 24px));
	padding: 36px 24px 40px calc(var(--jdn-pad) + 24px);
	overflow: visible;
}

#jd-nav-2026 .jdn-rail {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#jd-nav-2026 .jdn-rail__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 14px;
	border: 1px solid transparent;
	background: transparent;
	transition: all 220ms cubic-bezier(.2, .7, .2, 1);
}

#jd-nav-2026 .jdn-rail__text {
	flex: 1;
	min-width: 0;
}

#jd-nav-2026 .jdn-rail__name {
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	color: #0E0E10;
	transition: color 220ms cubic-bezier(.2, .7, .2, 1);
}

#jd-nav-2026 .jdn-rail__desc {
	display: block;
	font-size: 12.5px;
	line-height: 1.5;
	color: #8A8A92;
	margin-top: 3px;
}

#jd-nav-2026 .jdn-rail__arrow {
	flex-shrink: 0;
	color: #8A8A92;
	opacity: .35;
	transform: translateX(0);
	transition: all 220ms cubic-bezier(.2, .7, .2, 1);
}

#jd-nav-2026 .jdn-rail__item.is-active .jdn-rail__name,
#jd-nav-2026 .jdn-rail__item.is-active .jdn-rail__arrow {
	color: #14EEEE;
}

#jd-nav-2026 .jdn-rail__item.is-active .jdn-rail__arrow {
	opacity: 1;
	transform: translateX(4px);
}

#jd-nav-2026 .jdn-rail__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #3A3A3F;
	margin-top: 12px;
	border-bottom: 2px solid #14EEEE;
	padding-bottom: 2px;
	width: -moz-fit-content;
	width: fit-content;
	transition: color 160ms;
}

#jd-nav-2026 .jdn-rail__all--indent {
	margin-left: 18px;
}

#jd-nav-2026 .jdn-rail__all:hover {
	color: #0E0E10;
}

/* Link grid (middle column) */
#jd-nav-2026 .jdn-panel__col--links[hidden] {
	display: none;
}

#jd-nav-2026 .jdn-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 4px 24px;
	position: relative;
}

#jd-nav-2026 .jdn-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px;
	margin: 0 -10px;
	border-radius: 10px;
	transition: background 160ms;
}

#jd-nav-2026 .jdn-card:hover {
	background: #F7F7F8;
}

#jd-nav-2026 .jdn-card__icon {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	border: 1px solid #ECECEF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0E0E10;
	flex-shrink: 0;
	background: #fff;
}

#jd-nav-2026 .jdn-card__text {
	min-width: 0;
}

#jd-nav-2026 .jdn-card__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #0E0E10;
}

#jd-nav-2026 .jdn-card__desc {
	display: block;
	font-size: 12.5px;
	line-height: 1.5;
	color: #8A8A92;
	margin-top: 2px;
}

/* Promo (right column) */
#jd-nav-2026 .jdn-promo {
	background: #0E0E10;
	border-radius: 16px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	overflow: hidden;
}

#jd-nav-2026 .jdn-promo__mark {
	position: absolute;
	right: -60px;
	bottom: -60px;
	width: 220px;
	height: auto;
	opacity: .12;
	pointer-events: none;
}

#jd-nav-2026 .jdn-promo__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #14EEEE;
	position: relative;
}

#jd-nav-2026 .jdn-promo__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	position: relative;
}

#jd-nav-2026 .jdn-promo__desc {
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .65);
	position: relative;
}

#jd-nav-2026 .jdn-promo__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: -moz-fit-content;
	width: fit-content;
	font-size: 13px;
	font-weight: 700;
	color: #0E0E10;
	background: linear-gradient(135deg, #14EEEE, #6FFF2C);
	padding: 10px 18px;
	border-radius: 999px;
	transition: filter 220ms;
	position: relative;
}

#jd-nav-2026 .jdn-promo__cta:hover {
	filter: brightness(1.04);
	color: #0E0E10;
}

/* Divisions cards */
#jd-nav-2026 .jdn-divcard {
	display: block;
	padding: 28px 30px;
	border-radius: 16px;
	transition: background 220ms cubic-bezier(.2, .7, .2, 1);
}

#jd-nav-2026 .jdn-divcard:hover {
	background: #F7F7F8;
}

#jd-nav-2026 .jdn-divcard__name {
	display: block;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: #0E0E10;
}

#jd-nav-2026 .jdn-divcard__rule {
	display: block;
	width: 36px;
	height: 2px;
	background: linear-gradient(135deg, #14EEEE, #6FFF2C);
	margin: 14px 0 16px;
}

#jd-nav-2026 .jdn-divcard__desc {
	display: block;
	font-size: 14.5px;
	line-height: 1.7;
	color: #3A3A3F;
	max-width: 480px;
}

/* ---------- Mobile drawer ---------- */
#jd-nav-2026 .jdn-drawer {
	position: fixed;
	inset: 0;
	z-index: 1003;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear 320ms;
}

#jd-nav-2026 .jdn-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
	transition: visibility 0s;
}

#jd-nav-2026 .jdn-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(14, 14, 16, .4);
	opacity: 0;
	transition: opacity 280ms cubic-bezier(.2, .7, .2, 1);
}

#jd-nav-2026 .jdn-drawer.is-open .jdn-drawer__scrim {
	opacity: 1;
}

#jd-nav-2026 .jdn-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(380px, 92vw);
	background: #fff;
	box-shadow: -24px 0 64px rgba(14, 14, 16, .2);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 320ms cubic-bezier(.2, .7, .2, 1);
}

#jd-nav-2026 .jdn-drawer.is-open .jdn-drawer__panel {
	transform: translateX(0);
}

#jd-nav-2026 .jdn-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #ECECEF;
	flex-shrink: 0;
}

#jd-nav-2026 .jdn-drawer__head img {
	height: 28px;
	width: auto;
}

#jd-nav-2026 .jdn-drawer__close {
	border: 1px solid #DCDCE0;
	border-radius: 8px;
	padding: 8px 9px;
	display: flex;
}

#jd-nav-2026 .jdn-drawer__body {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 12px 20px 24px;
	flex: 1;
}

#jd-nav-2026 .jdn-drawer__link {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #0E0E10;
	padding: 14px 0;
	border-bottom: 1px solid #F1F1F3;
}

#jd-nav-2026 .jdn-acc {
	border-bottom: 1px solid #F1F1F3;
}

#jd-nav-2026 .jdn-acc__btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 16px;
	font-weight: 600;
	color: #0E0E10;
	padding: 14px 0;
	text-align: left;
}

/* 0fr -> 1fr animates to the content's natural height without measuring it
   in JS. The inner wrapper must clip and allow shrinking below min-content. */
#jd-nav-2026 .jdn-acc__panel {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	visibility: hidden;
	transition: grid-template-rows 300ms cubic-bezier(.2, .7, .2, 1),
		opacity 200ms cubic-bezier(.2, .7, .2, 1),
		visibility 0s linear 300ms;
}

#jd-nav-2026 .jdn-acc__panel.is-open {
	grid-template-rows: 1fr;
	opacity: 1;
	visibility: visible;
	transition: grid-template-rows 300ms cubic-bezier(.2, .7, .2, 1),
		opacity 240ms cubic-bezier(.2, .7, .2, 1) 60ms,
		visibility 0s;
}

/* The grid item itself must carry no padding: padding counts toward the row's
   minimum, which stops `0fr` collapsing and leaves a sliver when closed. */
#jd-nav-2026 .jdn-acc__inner {
	overflow: hidden;
	min-height: 0;
}

#jd-nav-2026 .jdn-acc__links {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 0 14px;
}

#jd-nav-2026 .jdn-acc__panel a {
	display: block;
	font-size: 14.5px;
	font-weight: 500;
	color: #3A3A3F;
	padding: 9px 12px;
	border-radius: 8px;
	transition: background 160ms, color 160ms;
}

#jd-nav-2026 .jdn-acc__panel a:hover {
	background: #F7F7F8;
	color: #0E0E10;
}

#jd-nav-2026 .jdn-drawer__ctas {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
}

#jd-nav-2026 .jdn-drawer__ctas .jdn-cta {
	font-size: 15px;
	width: 100%;
}

#jd-nav-2026 .jdn-drawer__ctas .jdn-cta--solid {
	padding: 15px 20px;
}

#jd-nav-2026 .jdn-drawer__ctas .jdn-cta--ghost {
	padding: 14px 20px;
}

/* Lock page scroll while the drawer is open */
body.jdn-drawer-open {
	overflow: hidden;
}

/* ---------- Minimal mode (conversion landing pages) ----------
   Logo + Methodology + Explore Partnership only. There is no drawer, so the
   single link must stay visible at every width - these selectors carry an
   extra class so they outrank the <=1180px rule that hides .jdn-links. */
#jd-nav-2026.jdn--minimal .jdn-links {
	display: flex;
}

#jd-nav-2026.jdn--minimal .jdn-bar {
	position: relative;
}

/* ---------- Breakpoints ---------- */
/* Theme container gutters */
@media (max-width: 1630px) {
	#jd-nav-2026 {
		--jdn-pad: 30px;
	}
}

@media (max-width: 767px) {
	#jd-nav-2026 {
		--jdn-pad: 25px;
	}
}

@media (max-width: 1180px) {
	#jd-nav-2026 .jdn-links {
		display: none;
	}

	#jd-nav-2026 .jdn-burger {
		display: inline-flex;
	}

	/* .jdn-links carried the margin-left:auto; without it the actions would
	   collapse against the logo. Keep the burger and CTAs hard right. */
	#jd-nav-2026 .jdn-actions {
		margin-left: auto;
	}

	/* Once the burger is up, "See Our Work" lives in the drawer. Showing it
	   here too would just duplicate it. */
	#jd-nav-2026 .jdn-actions .jdn-cta--ghost {
		display: none;
	}

	#jd-nav-2026 .jdn-panel {
		display: none !important;
	}
}

/* Narrow-width ladder. The 40px wordmark row (logo 231 + gap + CTA + burger)
   needs ~517px once spacing is tightened; the monogram row needs ~304px. */
@media (max-width: 700px) {
	#jd-nav-2026 .jdn-bar__inner {
		gap: 12px;
	}

	#jd-nav-2026 .jdn-actions {
		gap: 8px;
	}

	#jd-nav-2026 .jdn-actions .jdn-cta--solid {
		padding: 10px 14px;
		font-size: 13px;
	}
}

/* Wordmark stops fitting here. Fall back to the monogram rather than dropping
   the primary CTA, which is the point of the bar on a phone. */
@media (max-width: 540px) {
	#jd-nav-2026 .jdn-logo img.jdn-logo__full {
		display: none;
	}

	#jd-nav-2026 .jdn-logo img.jdn-logo__mark {
		display: block;
	}
}

/* Tightest tier: the CTA drops its arrow (the drawer CTA keeps it) so the
   25px page gutter survives down to 320px. */
@media (max-width: 400px) {
	#jd-nav-2026 .jdn-bar__inner {
		gap: 8px;
	}

	#jd-nav-2026 .jdn-logo img {
		height: 34px;
	}

	#jd-nav-2026 .jdn-actions {
		gap: 6px;
	}

	#jd-nav-2026 .jdn-actions .jdn-cta--solid {
		padding: 9px 11px;
		font-size: 12.5px;
		gap: 0;
	}

	#jd-nav-2026 .jdn-actions .jdn-cta--solid span {
		display: none;
	}
}

/* Minimal mode has no drawer, so "Methodology" must stay visible far longer
   than the full nav's links. It costs ~119px, which the full nav spends on a
   burger instead, so the wordmark has to yield to the monogram much earlier:
   the wordmark row needs ~650px here vs ~517px in full mode. */
@media (max-width: 700px) {
	#jd-nav-2026.jdn--minimal .jdn-logo img.jdn-logo__full {
		display: none;
	}

	#jd-nav-2026.jdn--minimal .jdn-logo img.jdn-logo__mark {
		display: block;
	}
}

/* Below this even the monogram row (~405px) will not fit. On a conversion
   landing page the CTA wins, so Methodology drops out last. */
@media (max-width: 430px) {
	#jd-nav-2026.jdn--minimal .jdn-links {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	#jd-nav-2026 *,
	#jd-nav-2026 *::before,
	#jd-nav-2026 *::after {
		transition-duration: 1ms !important;
		transition-delay: 0s !important;
		animation-duration: 1ms !important;
		animation-delay: 0s !important;
	}
}
