/* Delta Engineering — interactive structural model */
.de-hero .de-hero-grid .de-hero-structure {
	position: relative;
	height: 460px;
	min-width: 0;
}
.de-3d-stage {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 340px;
	overflow: hidden;
	isolation: isolate;
	border: 1px solid rgba(183, 198, 221, .18);
	background:
		radial-gradient(ellipse at 52% 46%, rgba(64, 88, 125, .28), transparent 58%),
		linear-gradient(145deg, rgba(19, 32, 55, .98), rgba(9, 17, 31, .96));
	box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}
.de-3d-stage::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(205, 219, 239, .055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(205, 219, 239, .055) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: linear-gradient(to bottom, black, transparent 96%);
}
#deStructuralCanvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	outline: none;
	touch-action: none;
}
.de-model-fallback {
	position: absolute;
	inset: 25px 0 10px;
	z-index: 1;
	display: grid;
	place-items: center;
	opacity: 1;
	transition: opacity .35s ease;
	pointer-events: none;
}
.de-model-fallback svg { width: 100%; height: 100%; max-height: 410px; overflow: visible; }
.de-3d-stage.is-ready .de-model-fallback { opacity: 0; }
.de-3d-topline, .de-3d-caption {
	position: absolute;
	left: 18px;
	right: 18px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: "IBM Plex Mono", monospace;
	font-size: 9px;
	letter-spacing: .11em;
	color: rgba(219, 229, 243, .78);
	pointer-events: none;
}
.de-3d-topline { top: 16px; }
.de-3d-status { display: inline-flex; align-items: center; gap: 8px; }
.de-3d-status i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #8cc6a4;
	box-shadow: 0 0 12px rgba(140, 198, 164, .7);
}
.de-3d-index { color: rgba(219, 229, 243, .48); }
.de-3d-annotations {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	font-family: "IBM Plex Mono", monospace;
	font-size: 8px;
	letter-spacing: .1em;
	color: rgba(232, 184, 111, .9);
}
.de-3d-annotation {
	position: absolute;
	padding: 5px 7px;
	border-left: 1px solid rgba(238, 168, 75, .8);
	background: rgba(10, 19, 34, .56);
}
.de-annotation-beam { top: 26%; right: 5%; }
.de-annotation-column { top: 54%; left: 4%; }
.de-annotation-brace { bottom: 25%; right: 4%; }
.de-3d-controls {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 43px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	pointer-events: none;
}
.de-3d-layer-controls, .de-3d-view-controls {
	display: flex;
	align-items: center;
	gap: 5px;
	pointer-events: auto;
}
.de-3d-controls button {
	min-height: 30px;
	padding: 0 9px;
	border: 1px solid rgba(211, 223, 240, .28);
	border-radius: 2px;
	background: rgba(11, 21, 38, .82);
	color: #dbe5f3;
	font: 500 9px/1 "IBM Plex Mono", monospace;
	letter-spacing: .04em;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.de-3d-controls button:hover,
.de-3d-controls button:focus-visible {
	border-color: #eea84b;
	outline: none;
}
.de-3d-controls button[aria-pressed="true"] {
	background: rgba(238, 168, 75, .16);
	border-color: rgba(238, 168, 75, .78);
	color: #ffd49a;
}
.de-3d-view-controls button:last-child {
	width: 32px;
	padding: 0;
	display: grid;
	place-items: center;
}
.de-3d-view-controls svg { width: 15px; height: 15px; }
.de-3d-caption {
	bottom: 15px;
	font-size: 8px;
	color: rgba(219, 229, 243, .48);
}
.de-3d-caption span:last-child { text-align: right; }
@media (max-width: 1180px) {
	.de-hero .de-hero-grid .de-hero-structure { height: 380px; }
}
@media (max-width: 991px) {
	.de-hero .de-hero-grid .de-hero-structure { height: 390px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
	.de-hero .de-hero-grid .de-hero-structure { height: 350px; }
	.de-3d-stage { min-height: 320px; }
	.de-3d-topline, .de-3d-caption { left: 11px; right: 11px; font-size: 8px; }
	.de-3d-controls { left: 8px; right: 8px; bottom: 39px; flex-wrap: wrap; }
	.de-3d-controls button { min-height: 29px; padding: 0 7px; font-size: 8px; }
	.de-3d-layer-controls { gap: 3px; }
	.de-3d-annotations { display: none; }
	.de-3d-caption { bottom: 11px; }
}
@media (prefers-reduced-motion: reduce) {
	.de-model-fallback { transition: none; }
}


/* Large open hero stage — desktop-first sizing. */
.de-hero .de-hero-grid .de-hero-structure { height: clamp(560px, 38vw, 720px); width: 100%; max-width: none; }
.de-hero .de-hero-grid { max-width: none; width: 100%; grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr); }
.de-3d-stage { border: 0; box-shadow: none; background: transparent; overflow: visible; }
.de-model-fallback { inset: 10px -2% 0; }
@media (max-width: 991px) {
  .de-hero .de-hero-grid .de-hero-structure { height: min(76vw, 620px); max-width: none; }
  .de-hero .de-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .de-hero .de-hero-grid .de-hero-structure { height: 390px; }
}
