/* ==========================================================================
   05 ENGINEERING DEPTH (S2 Assembly Paradigm) — Highest Intensity
   ========================================================================== */
/* ==========================================================================
   05 ENGINEERING DEPTH (System Capability Assembly) — Sec05.png Parity
   ========================================================================== */
#depth {
  position: relative;
  height: 250vh;
  border-bottom: 1px solid rgba(180, 210, 240, 0.4);
  background: transparent;
}
.depth-pin {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 24px;
  background: transparent;
}
.depth-container {
  position: relative;
}

/* Outer Margin HUD Watermarks matching Sec05.png */
.depth-watermark-left-bottom {
  position: absolute;
  left: 40px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-hud, 'Rajdhani', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #64748b;
  line-height: 1.45;
  pointer-events: none;
  z-index: 15;
}
.depth-watermark-bottom-center {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hud, 'Rajdhani', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #64748b;
  pointer-events: none;
  z-index: 15;
  white-space: nowrap;
}
.depth-watermark-bottom-center .wm-blue-dash {
  color: #0077ff;
  font-weight: 800;
}
.depth-watermark-right-bottom {
  position: absolute;
  right: 40px;
  bottom: 28px;
  text-align: right;
  font-family: var(--font-hud, 'Rajdhani', sans-serif);
  pointer-events: none;
  z-index: 15;
  line-height: 1.35;
}
.depth-watermark-right-bottom .wm-right-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #64748b;
  margin-bottom: 8px;
}
.depth-watermark-right-bottom .wm-scroll-hint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.depth-watermark-right-bottom .wm-explore-bar {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #0077ff;
}

.depth-watermark-left-bottom,
.depth-watermark-bottom-center,
.depth-watermark-right-bottom {
  opacity: var(--sec05-t, 0);
  will-change: opacity;
}

/* Layout Grid: Left (Why Doway Pillars) vs Right (Radial Assembly Stage) */
.depth-layout-grid {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

/* Left Column */
.depth-left-col {
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.depth-eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.depth-intensity-badge {
  box-shadow: 0 0 12px rgba(0, 120, 255, 0.35);
}
.depth-title {
  margin: 14px 0 8px;
}
.depth-subhead {
  font-family: var(--font-hud, 'Rajdhani', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 24px;
}

/* Why Doway Feature Cards */
.why-doway-cards {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 14px;
}
.depth-why-card {
  border-width: 1px;
  border-style: solid;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.depth-why-card[data-on="1"] {
  border-color: rgba(0, 140, 255, 0.65);
  border-left-color: #0066ff;
  box-shadow: 0 10px 30px rgba(0, 110, 240, 0.14), inset 0 0 14px rgba(0, 180, 255, 0.05);
}
.depth-why-card[data-on="0"] {
  opacity: 0.45;
  transform: translateX(-8px);
}
.why-card-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #08172e;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.why-card-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
  margin: 0;
}
/* Right Column: Radial Capability Matrix Stage */
.depth-right-col {
  display: flex;
  flex-direction: column;
  position: relative;
}
.depth-telemetry-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 8px;
  padding-right: 32px;
}
.depth-assembly-status {
  font-family: var(--font-hud, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0077ff;
  line-height: 1.2;
}
.depth-assembly-status::before {
  content: '';
  display: inline-block;
  width: 70px;
  height: 1.5px;
  background: #0077ff;
  vertical-align: middle;
  margin-right: 10px;
}
.depth-assembly-slashes {
  font-family: var(--font-hud, 'Rajdhani', sans-serif);
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.14em;
  margin-right: 4px;
}

/* Assembly Canvas Box */
.assembly-canvas-box {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 560;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.assembly-radar-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.assembly-laser-line {
  stroke: rgba(0, 140, 255, 0.25);
  stroke-width: 1.2;
  stroke-dasharray: 4, 4;
  transition: stroke 0.35s var(--ease-out), stroke-width 0.35s var(--ease-out), opacity 0.35s var(--ease-out), filter 0.35s var(--ease-out);
}
.assembly-laser-line.lit {
  stroke: #0088ff;
  stroke-width: 1.8;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 5px rgba(0, 180, 255, 0.8));
  opacity: 0.92;
}

/* Central Reactor Core Hub */
.assembly-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 156px;
  height: 156px;
  border-radius: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle, #031433 0%, #062b70 60%, #0052cc 88%, #0099ff 100%);
  border: 2px solid #00aaff;
  box-shadow: 0 0 36px rgba(0, 130, 255, 0.5), inset 0 0 24px rgba(0, 160, 255, 0.4);
}
.hub-core-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 160, 255, 0.5);
  pointer-events: none;
  animation: rotateSlow 24s linear infinite;
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hub-core-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hub-title-1 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.hub-title-2 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.hub-title-3 {
  font-family: var(--font-hud, 'Rajdhani', sans-serif);
  font-size: 9px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.16em;
  margin-top: 4px;
}
.hub-dash {
  font-family: var(--font-hud, 'Rajdhani', sans-serif);
  color: #38bdf8;
  font-size: 12px;
  line-height: 1;
  margin-top: 2px;
}

/* 8 Radial Capability Nodes */
.cap-node {
  --node-scale: 0.9;
  position: absolute;
  left: calc(var(--node-x) / 760 * 100%);
  top: calc(var(--node-y) / 560 * 100%);
  width: 38px;
  height: 38px;
  z-index: 10;
  transform: translate(-50%, -50%) scale(var(--node-scale));
  transform-origin: center;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.cap-node[data-on="0"] {
  opacity: 0.35;
  --node-scale: 0.9;
}
.cap-node[data-on="1"] {
  opacity: 1;
  --node-scale: 1;
}
/* Diamond Badges (Rotated 45deg) */
.cap-diamond-badge {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #092357, #02112a);
  border: 1.5px solid #0099ff;
  box-shadow: 0 0 14px rgba(0, 150, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cap-icon {
  width: 18px;
  height: 18px;
  color: #ffffff;
  transform: rotate(-45deg);
}

/* Corner Bracket Frosted Pill Cards */
.cap-pill-card {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 150, 255, 0.4);
  border-radius: 4px;
  padding: 6px 12px;
  box-shadow: 0 6px 18px rgba(0, 50, 150, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.cap-corner-tl, .cap-corner-tr, .cap-corner-bl, .cap-corner-br {
  position: absolute;
  width: 5px;
  height: 5px;
  pointer-events: none;
}
.cap-corner-tl { top: -1px; left: -1px; border-top: 1.5px solid #0099ff; border-left: 1.5px solid #0099ff; }
.cap-corner-tr { top: -1px; right: -1px; border-top: 1.5px solid #0099ff; border-right: 1.5px solid #0099ff; }
.cap-corner-bl { bottom: -1px; left: -1px; border-bottom: 1.5px solid #0099ff; border-left: 1.5px solid #0099ff; }
.cap-corner-br { bottom: -1px; right: -1px; border-bottom: 1.5px solid #0099ff; border-right: 1.5px solid #0099ff; }

.cap-tag {
  font-family: var(--font-hud, 'Rajdhani', sans-serif);
  font-size: 8.5px;
  font-weight: 700;
  color: #0077ff;
  letter-spacing: 0.14em;
}
.cap-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #08172e;
}

@media (min-width: 1600px) {
  .depth-layout-grid {
    grid-template-columns: 460px minmax(0, 1fr);
    gap: 48px;
  }
}

/*
 * Node anchors share the SVG's 760x560 coordinate system. Each .cap-node is
 * the diamond's 38x38 anchor; its card is only a direction-aware child.
 */
.node-pos-0 {
  --node-x: 380;
  --node-y: 140;
}
.node-pos-1 {
  --node-x: 480;
  --node-y: 180;
}
.node-pos-2 {
  --node-x: 520;
  --node-y: 280;
}
.node-pos-3 {
  --node-x: 480;
  --node-y: 380;
}
.node-pos-4 {
  --node-x: 380;
  --node-y: 420;
}
.node-pos-5 {
  --node-x: 280;
  --node-y: 380;
}
.node-pos-6 {
  --node-x: 240;
  --node-y: 280;
}
.node-pos-7 {
  --node-x: 280;
  --node-y: 180;
}

/* Top: card grows away from the hub. */
.node-pos-0 .cap-pill-card {
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
}

/* Right half: card grows to the right of the diamond. */
.node-pos-1 .cap-pill-card,
.node-pos-2 .cap-pill-card,
.node-pos-3 .cap-pill-card {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
}

/* Bottom: card grows away from the hub. */
.node-pos-4 .cap-pill-card {
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
}

/* Left half: card grows to the left of the diamond. */
.node-pos-5 .cap-pill-card,
.node-pos-6 .cap-pill-card,
.node-pos-7 .cap-pill-card {
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
}
