/* NTC 3D Logistics Experience – front-end styles. All colours come from CSS variables set in the admin. */
.ntcx {
	--ntcx-primary: #a70000;
	--ntcx-accent: #f9cf6a;
	--ntcx-dark: #1e3039;
	--ntcx-light: #f4ecdd;
	--ntcx-text: #fff;
	--ntcx-fog: #cdb68c;
	--ntcx-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ntcx-title: 80px;
	--ntcx-gutter: clamp(18px, 5.2%, 100px);
	position: relative;
	width: 100%;
	height: var(--ntcx-h, 810px);
	overflow: hidden;
	background: var(--ntcx-fog);
	color: var(--ntcx-text);
	font-family: var(--ntcx-font);
	isolation: isolate;
	container-type: inline-size;
	container-name: ntcx;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
.ntcx *, .ntcx *::before, .ntcx *::after { box-sizing: border-box; }
.ntcx button { font-family: inherit; }
.ntcx button:focus-visible { outline: 2px solid var(--ntcx-accent); outline-offset: 2px; }
@media (max-width: 767px) { .ntcx { height: var(--ntcx-hm, 640px); } }

.ntcx-canvas { position: absolute; inset: 0; z-index: 0; }
.ntcx-canvas canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; }
.ntcx-canvas canvas:active { cursor: grabbing; }
.ntcx-shade {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(18, 28, 33, .55) 0%, rgba(18, 28, 33, .18) 30%, rgba(18, 28, 33, 0) 55%),
		linear-gradient(90deg, rgba(18, 28, 33, .25) 0%, rgba(18, 28, 33, 0) 45%);
}

/* Hero copy */
.ntcx-hero { position: absolute; z-index: 3; left: var(--ntcx-gutter); top: 7%; max-width: min(640px, 60%); pointer-events: none; }
.ntcx .ntcx-eyebrow { margin: 0 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ntcx-light); line-height: 1.4; }
.ntcx .ntcx-title {
	margin: 0; padding: 0; border: 0;
	font-family: var(--ntcx-font);
	font-size: clamp(40px, 7.2cqw, var(--ntcx-title));
	line-height: .98; font-weight: 700; letter-spacing: -.05em;
	color: var(--ntcx-text); text-shadow: 0 2px 30px rgba(0, 0, 0, .12);
}
.ntcx .ntcx-title span { display: block; color: var(--ntcx-accent); }
.ntcx .ntcx-sub { margin: 26px 0 0; font-size: clamp(15px, 1.2cqw, 18px); line-height: 1.5; letter-spacing: -.01em; color: var(--ntcx-text); opacity: .92; }

/* Top-right */
.ntcx-top { position: absolute; z-index: 4; top: 32px; right: 26px; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.ntcx-btns { display: flex; gap: 10px; }
.ntcx .ntcx-btn {
	appearance: none; display: inline-flex; align-items: center; gap: 10px;
	padding: 16px 17px; margin: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px;
	background: var(--ntcx-dark); color: #fff; font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -.01em;
	cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); transition: background-color .2s, transform .2s;
}
.ntcx .ntcx-btn:hover { background: var(--ntcx-primary); }
.ntcx .ntcx-status {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 26px 0 0; padding: 9px 13px;
	background: var(--ntcx-light); color: #55524b; border-radius: 2px;
	font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
}
.ntcx-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ntcx-primary); animation: ntcx-blink 1s ease-in-out infinite; }
.ntcx--ready .ntcx-status i { animation: none; }

/* Bottom */
.ntcx-bottom { position: absolute; z-index: 4; left: var(--ntcx-gutter); right: var(--ntcx-gutter); bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; pointer-events: none; }
.ntcx-tabs {
	pointer-events: auto; display: flex; gap: 4px; max-width: 100%; padding: 6px;
	background: color-mix(in srgb, var(--ntcx-light) 90%, transparent); border-radius: 2px;
	overflow-x: auto; scrollbar-width: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	box-shadow: 0 10px 30px rgba(60, 40, 10, .12);
}
.ntcx-tabs::-webkit-scrollbar { display: none; }
.ntcx .ntcx-tab {
	appearance: none; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
	margin: 0; padding: 17px 19px; border: 0; border-radius: 2px; background: transparent;
	color: #2c2a27; font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
	transition: background-color .25s, color .25s;
}
.ntcx .ntcx-tab small { font-size: 12px; font-weight: 400; opacity: .6; }
.ntcx .ntcx-tab:hover { background: rgba(0, 0, 0, .05); }
.ntcx .ntcx-tab.is-active { background: var(--ntcx-primary); color: #fff; }
.ntcx .ntcx-tab.is-active small { opacity: .8; }
.ntcx .ntcx-hint { pointer-events: auto; margin: 0; padding: 11px 14px; border-radius: 2px; background: color-mix(in srgb, var(--ntcx-light) 80%, transparent); color: #5a5750; font-size: 14px; line-height: 1.2; }

/* Hotspots */
.ntcx-hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .35s; }
.ntcx-hotspots.is-hidden { opacity: 0; }
.ntcx-hotspots.is-hidden .ntcx-hot { pointer-events: none; }
.ntcx .ntcx-hot {
	position: absolute; left: 0; top: 0; margin: -16px 0 0 -16px; padding: 0; border: 0; background: none;
	display: flex; align-items: center; gap: 8px; pointer-events: auto; cursor: pointer; will-change: transform;
}
.ntcx-hot.is-off { visibility: hidden; }
.ntcx-hot-dot { position: relative; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .35), 0 6px 16px rgba(0, 0, 0, .18); transition: transform .2s; }
.ntcx-hot-dot::before, .ntcx-hot-dot::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--ntcx-primary); border-radius: 1px; transform: translate(-50%, -50%); transition: transform .25s; }
.ntcx-hot-dot::before { width: 12px; height: 2px; }
.ntcx-hot-dot::after { width: 2px; height: 12px; }
.ntcx-hot:hover .ntcx-hot-dot { transform: scale(1.08); }
.ntcx-hot.is-active .ntcx-hot-dot::after { transform: translate(-50%, -50%) rotate(90deg); }
.ntcx-hot.is-active .ntcx-hot-dot { background: var(--ntcx-primary); }
.ntcx-hot.is-active .ntcx-hot-dot::before, .ntcx-hot.is-active .ntcx-hot-dot::after { background: #fff; }
.ntcx-hot-label { padding: 7px 9px; border-radius: 2px; background: rgba(255, 255, 255, .92); color: #2f2d2a; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
.ntcx:not(.ntcx--ready) .ntcx-hot-dot { animation: none; }
.ntcx--ready .ntcx-hot-dot { animation: ntcx-ring 2.4s ease-out 1s 2; }

.ntcx-info {
	position: absolute; left: 0; top: 0; z-index: 5; width: min(290px, calc(100% - 24px)); padding: 18px 40px 16px 18px;
	background: #fff; color: #26241f; border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
	opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; pointer-events: auto;
}
.ntcx-info.is-open { opacity: 1; visibility: visible; }
.ntcx .ntcx-info h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--ntcx-primary); letter-spacing: -.01em; }
.ntcx .ntcx-info p { margin: 0; font-size: 14px; line-height: 1.5; color: #45423c; }
.ntcx .ntcx-info-close, .ntcx .ntcx-panel-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .6; }
.ntcx .ntcx-info-close:hover, .ntcx .ntcx-panel-close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }

/* Controls & details panel */
.ntcx-panel {
	position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: min(370px, 90%);
	padding: 28px 28px 32px; overflow-y: auto; color: #fff;
	background: color-mix(in srgb, var(--ntcx-dark) 94%, transparent);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transform: translateX(102%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.ntcx--panel-open .ntcx-panel { transform: none; }
.ntcx-panel-head { position: relative; padding-right: 36px; margin-bottom: 26px; }
.ntcx .ntcx-panel-head h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ntcx-accent); }
.ntcx .ntcx-panel-close { top: -6px; right: -6px; color: #fff; }
.ntcx .ntcx-panel-close:hover { background: rgba(255, 255, 255, .1); }
.ntcx .ntcx-panel-body h4 { margin: 0 0 10px; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.ntcx .ntcx-panel-desc { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.ntcx .ntcx-panel-body dl { display: grid; grid-template-columns: auto 1fr; margin: 0 0 26px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ntcx .ntcx-panel-body dt, .ntcx .ntcx-panel-body dd { margin: 0; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.ntcx .ntcx-panel-body dt { color: rgba(255, 255, 255, .6); padding-right: 16px; }
.ntcx .ntcx-panel-body dd { text-align: right; font-weight: 600; }
.ntcx-panel-controls { display: grid; gap: 14px; }
.ntcx-switch { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.ntcx-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ntcx-switch b { position: relative; width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .22); transition: background-color .2s; flex: 0 0 auto; }
.ntcx-switch b::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ntcx-switch input:checked + b { background: var(--ntcx-primary); }
.ntcx-switch input:checked + b::after { transform: translateX(16px); }
.ntcx-switch input:focus-visible + b { outline: 2px solid var(--ntcx-accent); outline-offset: 2px; }
.ntcx-panel-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ntcx .ntcx-panel-btns button { flex: 1 1 auto; margin: 0; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 3px; background: transparent; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color .2s; }
.ntcx .ntcx-panel-btns button:hover { background: rgba(255, 255, 255, .1); }

/* Loader */
.ntcx-loader { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: var(--ntcx-fog); transition: opacity .6s .1s, visibility .6s .1s; }
.ntcx-loader span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: var(--ntcx-primary); animation: ntcx-spin .8s linear infinite; }
.ntcx--ready .ntcx-loader, .ntcx--nowebgl .ntcx-loader { opacity: 0; visibility: hidden; }
.ntcx-nowebgl { position: absolute; z-index: 8; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 420px; padding: 20px; background: #fff; color: #333; border-radius: 4px; text-align: center; }

/* Full screen */
.ntcx:fullscreen { width: 100vw; height: 100vh !important; }
.ntcx:-webkit-full-screen { width: 100vw; height: 100vh !important; }
.ntcx.ntcx--pseudo-fs { position: fixed !important; inset: 0; z-index: 999999; width: 100vw; height: 100% !important; }
html.ntcx-lock, html.ntcx-lock body { overflow: hidden !important; }

/* Narrow containers (mobile, sidebars, columns) */
@container ntcx (max-width: 900px) {
	.ntcx-hero { max-width: 70%; }
	.ntcx .ntcx-btn { padding: 13px; font-size: 14px; }
	.ntcx .ntcx-tab { padding: 14px 15px; font-size: 14px; }
}
@container ntcx (max-width: 640px) {
	.ntcx-hero { top: 84px; max-width: calc(100% - 36px); }
	.ntcx .ntcx-eyebrow { font-size: 10px; margin-bottom: 12px; }
	.ntcx .ntcx-sub { margin-top: 14px; }
	.ntcx-top { top: 16px; right: 16px; left: 16px; flex-direction: row; justify-content: space-between; align-items: center; }
	.ntcx-top .ntcx-status { order: -1; margin: 0; }
	.ntcx .ntcx-btn span { display: none; }
	.ntcx .ntcx-btn { padding: 12px; }
	.ntcx-bottom { left: 12px; right: 12px; bottom: 12px; gap: 10px; }
	.ntcx-tabs { width: 100%; }
	.ntcx .ntcx-hint { font-size: 12px; padding: 8px 10px; }
	.ntcx-panel { width: 100%; }
}

@keyframes ntcx-spin { to { transform: rotate(360deg); } }
@keyframes ntcx-blink { 50% { opacity: .25; } }
@keyframes ntcx-ring {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7), 0 6px 16px rgba(0, 0, 0, .18); }
	100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0), 0 6px 16px rgba(0, 0, 0, .18); }
}
@media (prefers-reduced-motion: reduce) {
	.ntcx *, .ntcx *::before, .ntcx *::after { animation: none !important; transition-duration: .01ms !important; }
}
