/* ==========================================================================
   Home Hero v4 — "The Corridor"
   Dark editorial hero: big type left, live Yiwu → Dhaka corridor right,
   with a "docket" of quick-start links overlapping the map.
   Decorative labels are rendered via CSS content (not page text) so the
   page's indexed copy is unchanged.
   ========================================================================== */

.jxh {
	--red: #e2222d;
	--red-hot: #ff4650;
	--ink: #07080a;
	--panel: #0e1014;
	--line: rgba(255, 255, 255, .09);
	--text: #f4f5f7;
	--muted: #9aa3b2;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--display: 'Rajdhani', 'Poppins', system-ui, sans-serif;
	--body: 'Poppins', system-ui, sans-serif;
	--ease: cubic-bezier(.16, 1, .3, 1);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--ink);
	color: var(--text);
	font-family: var(--body);
	padding: clamp(48px, 5.5vw, 88px) 0 clamp(64px, 7vw, 112px);
}
.jxh *, .jxh *::before, .jxh *::after { box-sizing: border-box; }

/* ---------- Background layers ---------- */
.jxh__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.jxh__grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 72px 72px;
	background-position: -1px -1px;
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 10%, transparent 75%);
	        mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 10%, transparent 75%);
	opacity: .55;
}
.jxh__glow {
	position: absolute; width: 900px; height: 900px; right: -260px; top: -180px;
	background: radial-gradient(circle, rgba(226, 34, 45, .22) 0%, rgba(226, 34, 45, .06) 35%, transparent 65%);
	filter: blur(10px);
}
.jxh__grain {
	position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.jxh__inner {
	max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px);
	display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	gap: clamp(40px, 5vw, 80px); align-items: center;
}

/* ---------- Copy ---------- */
.jxh__eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 22px; padding: 8px 14px 8px 12px;
	border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
	background: rgba(255, 255, 255, .03);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.jxh__eyebrow .badge-text {
	font: 600 11px/1 var(--mono) !important; letter-spacing: .2em !important;
	color: rgba(255, 255, 255, .72) !important; text-transform: uppercase;
	margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important;
}
.jxh__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.jxh__pulse::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red);
	animation: jxhPing 2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes jxhPing { 75%, 100% { transform: scale(2.8); opacity: 0; } }

.jxh .jxh__title {
	font-family: var(--display); font-weight: 700;
	font-size: clamp(40px, 4.5vw, 66px); line-height: .98; letter-spacing: -.01em;
	color: #fff; margin: 0 0 26px; text-transform: none;
}
.jxh__line { display: block; overflow: hidden; padding-bottom: .04em; }
.jxh__line > span { display: block; }
.jxh__title em {
	font-style: normal; color: var(--red); position: relative; white-space: nowrap;
}
.jxh__title em::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .07em;
	background: currentColor; transform-origin: left; transform: scaleX(1);
	opacity: .55;
}

.jxh .jxh__lead {
	font-size: clamp(15px, 1.15vw, 17px); line-height: 1.78; color: var(--muted);
	max-width: 590px; margin: 0 0 30px;
}
.jxh__lead strong { color: #fff; font-weight: 600; }

/* CTAs */
.jxh__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.jxh__btn {
	position: relative; display: inline-flex; align-items: center; gap: 12px;
	height: 56px; padding: 0 26px; border-radius: 6px;
	font: 700 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
	text-decoration: none !important; overflow: hidden;
	transition: transform .35s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .35s var(--ease);
}
.jxh__btn svg { width: 18px; height: 18px; flex: none; }
.jxh__btn--primary { background: var(--red); color: #fff !important; box-shadow: 0 10px 30px -10px rgba(226, 34, 45, .7); }
.jxh__btn--primary svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.jxh__btn--primary::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .8s var(--ease);
}
.jxh__btn--primary:hover { background: var(--red-hot); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(226, 34, 45, .8); }
.jxh__btn--primary:hover::before { transform: translateX(120%); }
.jxh__btn--primary:hover svg { transform: translateX(4px); }
.jxh__btn--ghost { color: #fff !important; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .02); }
.jxh__btn--ghost .jxh__wa { fill: #25D366; }
.jxh__btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.jxh__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Steps: a 3-stage progress rail */
.jxh__steps {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
	max-width: 620px;
}
.jxh__steps li {
	position: relative; padding: 18px 16px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .14);
	display: flex; flex-direction: column; gap: 6px;
}
.jxh__steps li::before {
	content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
	background: var(--red); transform-origin: left; transform: scaleX(0);
	animation: jxhStep 6s linear infinite;
}
.jxh__steps li:nth-child(2)::before { animation-delay: 2s; }
.jxh__steps li:nth-child(3)::before { animation-delay: 4s; }
@keyframes jxhStep {
	0% { transform: scaleX(0); opacity: 1; }
	30% { transform: scaleX(1); opacity: 1; }
	60%, 100% { transform: scaleX(1); opacity: 0; }
}
.jxh__steps b { font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--red); }
.jxh__steps span { font: 600 15px/1.3 var(--display); letter-spacing: .03em; color: #e6e8ec; }

/* ---------- Visual / Map ---------- */
.jxh__visual { position: relative; }
.jxh__map {
	position: relative; aspect-ratio: 560 / 420;
	border: 1px solid rgba(255, 255, 255, .09); border-radius: 20px;
	background:
		radial-gradient(120% 90% at 80% 20%, rgba(226, 34, 45, .1), transparent 60%),
		linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .005));
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.jxh__map::before { /* corner brackets */
	content: ""; position: absolute; inset: 14px; pointer-events: none; z-index: 2;
	background:
		linear-gradient(var(--red), var(--red)) top left / 18px 1px no-repeat,
		linear-gradient(var(--red), var(--red)) top left / 1px 18px no-repeat,
		linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)) bottom right / 18px 1px no-repeat,
		linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)) bottom right / 1px 18px no-repeat;
}
.jxh__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.jxh__route { fill: none; stroke-linecap: round; }
.jxh__route--air { stroke: url(#jxhArc); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.jxh__route--sea {
	stroke: rgba(255, 255, 255, .32); stroke-width: 1.4; stroke-dasharray: 3 7;
	animation: jxhFlow 1.6s linear infinite;
}
@keyframes jxhFlow { to { stroke-dashoffset: -20; } }

.jxh__parcel rect { fill: #fff; filter: drop-shadow(0 0 6px rgba(226, 34, 45, .9)); }
.jxh__parcel--sea rect { fill: var(--red); filter: drop-shadow(0 0 6px rgba(226, 34, 45, .7)); }

.jxh__dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.jxh__ring {
	fill: none; stroke: var(--red); stroke-width: 1.5;
	transform-box: fill-box; transform-origin: center;
	animation: jxhRing 2.6s cubic-bezier(0, 0, .2, 1) infinite;
}
.jxh__ring--2 { animation-delay: 1.3s; }
.jxh__node--dhaka .jxh__ring { animation-delay: .65s; }
.jxh__node--dhaka .jxh__ring--2 { animation-delay: 1.95s; }
@keyframes jxhRing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }

/* labels positioned in % of the 560×420 map */
.jxh__lat {
	position: absolute; left: 14px; font: 500 10px/1 var(--mono); letter-spacing: .1em;
	color: rgba(255, 255, 255, .3); pointer-events: none;
}
.jxh__lat::before { content: attr(data-l); }
.jxh__lat--30 { top: calc(122 / 420 * 100% - 16px); }
.jxh__lat--23 { top: calc(230 / 420 * 100% - 16px); }

.jxh__pin {
	position: absolute; z-index: 3;
	display: grid; gap: 4px; padding: 10px 12px 11px;
	min-width: 132px;
	background: rgba(14, 16, 20, .78);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px;
	pointer-events: none;
}
.jxh__pin::before {
	content: attr(data-k);
	font: 700 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--red);
}
.jxh__pin::after {
	content: attr(data-v) "\A" attr(data-time);
	white-space: pre; font: 600 13px/1.35 var(--display); letter-spacing: .03em; color: #e6e8ec;
}
.jxh__pin--yiwu  { right: calc(122 / 560 * 100%); top: calc(108 / 420 * 100%); }
.jxh__pin--dhaka { left: calc(15 / 560 * 100%);  top: calc(237 / 420 * 100%); }

.jxh__dist {
	position: absolute; right: 18px; bottom: 16px; z-index: 2;
	font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
	color: rgba(255, 255, 255, .45);
}
.jxh__dist::before { content: attr(data-l); }

/* ---------- Docket (quick-start links) ---------- */
.jxh__docket {
	position: relative; z-index: 4;
	width: min(370px, 92%);
	margin: -72px 0 0 -32px;
	background: var(--panel);
	border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
	padding: 0 20px 10px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4);
	counter-reset: jxhk;
}
.jxh__docket-head {
	display: flex; justify-content: space-between; align-items: center;
	margin: 0 -20px; padding: 13px 20px 12px;
	border-bottom: 1px dashed rgba(255, 255, 255, .14);
	position: relative;
	font: 600 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.jxh__docket-head::before { content: attr(data-l); }
.jxh__docket-head::after  { content: attr(data-r); color: var(--red); }
.jxh__docket::before, .jxh__docket::after { /* perforation notches */
	content: ""; position: absolute; top: 30px; width: 14px; height: 14px; border-radius: 50%;
	background: var(--ink); border: 1px solid rgba(255, 255, 255, .1);
}
.jxh__docket::before { left: -8px; clip-path: inset(0 0 0 50%); }
.jxh__docket::after  { right: -8px; clip-path: inset(0 50% 0 0); }

.jxh .jxh__docket-title {
	font: 700 22px/1.15 var(--display); color: #fff; letter-spacing: .01em;
	margin: 16px 0 6px; text-transform: none;
}
.jxh__docket ul { list-style: none; margin: 0; padding: 0; }
.jxh__docket li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
.jxh__docket a {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 8px; margin: 0 -8px; border-radius: 8px;
	font: 600 15px/1.25 var(--display); letter-spacing: .02em;
	color: #e6e8ec !important; text-decoration: none !important;
	transition: background .2s, color .2s;
}
.jxh__docket a i { margin-left: auto; font-style: normal; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.jxh__docket a i::before { content: "\2192"; }
.jxh__docket a i.jxh__ext::before { content: "\2197"; }
.jxh__docket a:hover, .jxh__docket a:focus-visible { background: rgba(255, 255, 255, .04); color: #fff !important; outline: none; }
.jxh__docket a:hover i, .jxh__docket a:focus-visible i { transform: translateX(4px); color: var(--red); }
.jxh__k {
	counter-increment: jxhk;
	flex: none; display: grid; place-items: center;
	width: 24px; height: 24px; border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, .14);
	font: 700 10px/1 var(--mono); color: var(--muted);
	transition: border-color .2s, color .2s, background .2s;
}
.jxh__k::before { content: counter(jxhk, upper-alpha); }
.jxh__k--wa { border-color: rgba(37, 211, 102, .4); color: #25D366; }
.jxh__k--wa::before { content: "WA"; font-size: 8px; letter-spacing: .02em; }
.jxh__docket a:hover .jxh__k { border-color: var(--red); color: #fff; background: var(--red); }
.jxh__docket a:hover .jxh__k--wa { border-color: #25D366; background: #25D366; color: #07080a; }

/* ---------- Entrance choreography (only when JS opts in) ---------- */
html.jxh-anim .jxh__eyebrow,
html.jxh-anim .jxh__lead,
html.jxh-anim .jxh__ctas,
html.jxh-anim .jxh__steps,
html.jxh-anim .jxh__docket { opacity: 0; transform: translateY(18px); }
html.jxh-anim .jxh__line > span { transform: translateY(105%); }
html.jxh-anim .jxh__title em::after { transform: scaleX(0); }
html.jxh-anim .jxh__map { opacity: 0; transform: scale(.96); }
html.jxh-anim .jxh__route--air { stroke-dashoffset: 1; }
html.jxh-anim .jxh__pin { opacity: 0; transform: translateY(8px); }

.jxh--in .jxh__eyebrow, .jxh--in .jxh__lead, .jxh--in .jxh__ctas, .jxh--in .jxh__steps, .jxh--in .jxh__docket,
.jxh--in .jxh__line > span, .jxh--in .jxh__map, .jxh--in .jxh__pin {
	transition: opacity .9s var(--ease), transform 1s var(--ease);
	opacity: 1 !important; transform: none !important;
}
.jxh--in .jxh__line:nth-child(1) > span { transition-delay: .08s; }
.jxh--in .jxh__line:nth-child(2) > span { transition-delay: .18s; }
.jxh--in .jxh__lead   { transition-delay: .3s; }
.jxh--in .jxh__ctas   { transition-delay: .4s; }
.jxh--in .jxh__steps  { transition-delay: .5s; }
.jxh--in .jxh__map    { transition-delay: .15s; }
.jxh--in .jxh__pin    { transition-delay: 1.2s; }
.jxh--in .jxh__docket { transition-delay: .55s; }
.jxh--in .jxh__title em::after { transition: transform .8s var(--ease) .75s; transform: scaleX(1) !important; }
.jxh--in .jxh__route--air { transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1) .5s; stroke-dashoffset: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.jxh__inner { grid-template-columns: 1fr; }
	.jxh__visual { max-width: 640px; width: 100%; justify-self: center; }
	.jxh__docket { margin-left: 16px; }
}
@media (max-width: 640px) {
	.jxh { padding-top: 40px; }
	.jxh .jxh__title { font-size: clamp(36px, 10.5vw, 46px); line-height: 1.02; }
	.jxh__title em { white-space: normal; }
	.jxh__eyebrow { margin-bottom: 22px; }
	.jxh__eyebrow .badge-text { font-size: 10px !important; letter-spacing: .14em !important; }
	.jxh__ctas { flex-direction: column; }
	.jxh__btn { width: 100%; justify-content: center; }
	.jxh__steps { grid-template-columns: 1fr; }
	.jxh__steps li { flex-direction: row; align-items: baseline; gap: 14px; padding: 14px 0; }
	.jxh__map { border-radius: 14px; }
	.jxh__pin { min-width: 0; padding: 7px 9px; }
	.jxh__pin::after { font-size: 11px; }
	.jxh__lat { display: none; }
	.jxh__docket { width: auto; margin: -40px 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
	.jxh *, .jxh *::before, .jxh *::after { animation: none !important; transition: none !important; }
	html.jxh-anim .jxh * { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
	.jxh__parcel { display: none; }
}
