/* ==========================================================================
   Spatial Workshop Diorama, Deep X-Ray HUD, Mobile Anti-Overlap & Restoration Lab
   ========================================================================== */

.hero[data-env-mode="workshop"] {
  background: #141312;
  color: #f6f7f4;
}

.hero[data-env-mode="workshop"]:after {
  background: linear-gradient(
    180deg,
    rgba(14, 15, 12, 0.72) 0%,
    rgba(14, 15, 12, 0.18) 24%,
    rgba(14, 15, 12, 0) 50%,
    rgba(14, 15, 12, 0.45) 84%,
    rgba(14, 15, 12, 0.88) 100%
  ) !important;
  opacity: 1 !important;
}

/* Spatial Workshop Diorama Layers */
.workshop-diorama {
  position: absolute;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.hero[data-env-mode="studio"] .workshop-diorama {
  opacity: 0;
}

.workshop-diorama__photo {
  position: absolute;
  inset: 0;
  background: url("assets/hero/workshop-bay-wide.jpg") center 54% / cover
    no-repeat;
  will-change: transform, filter;
  transition: filter 0.35s ease;
}

.workshop-diorama__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 54%,
      transparent 32%,
      rgba(11, 12, 9, 0.68) 92%
    ),
    linear-gradient(
      180deg,
      rgba(12, 13, 10, 0.55) 0%,
      transparent 28%,
      transparent 72%,
      rgba(12, 13, 10, 0.78) 100%
    );
}

.workshop-diorama__lightbeams {
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(
      122deg,
      rgba(223, 224, 218, 0.16) 8%,
      rgba(223, 224, 218, 0.05) 34%,
      transparent 58%
    ),
    radial-gradient(
      ellipse at 62% 22%,
      rgba(255, 195, 110, 0.12),
      transparent 55%
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Engineering Blueprint Grid & Sweeping Laser Beam in X-Ray Mode */
.workshop-diorama__grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  background-image:
    linear-gradient(rgba(223, 224, 218, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 224, 218, 0.18) 1px, transparent 1px),
    radial-gradient(
      circle at 50% 52%,
      rgba(223, 224, 218, 0.28),
      rgba(14, 15, 12, 0.85) 72%
    );
  background-size:
    44px 44px,
    44px 44px,
    100% 100%;
}

.workshop-diorama__xray-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  left: -160px;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(223, 224, 218, 0.08) 35%,
    rgba(223, 224, 218, 0.65) 50%,
    rgba(223, 224, 218, 0.08) 65%,
    transparent 100%
  );
  box-shadow: 0 0 40px rgba(223, 224, 218, 0.35);
  pointer-events: none;
}

.hero.is-xray .workshop-diorama__grid {
  opacity: 1;
}

.hero.is-xray .workshop-diorama__xray-beam {
  opacity: 1;
  animation: xray-sweep 4.2s ease-in-out infinite alternate;
}

@keyframes xray-sweep {
  0% {
    left: 8%;
  }
  100% {
    left: 82%;
  }
}

/* Boost both WebGL canvas and mobile fallback video when X-Ray is active */
.hero.is-xray #scan-scene {
  filter: drop-shadow(0 0 22px rgba(223, 224, 218, 0.38)) contrast(1.18)
    saturate(1.35);
}

.hero.is-xray #scan-fallback {
  filter: invert(0.92) hue-rotate(175deg) saturate(2.6) contrast(1.45)
    brightness(0.95);
  mix-blend-mode: screen;
}

/* X-Ray Telemetry Legend Bar */
.xray-telemetry-hud {
  position: absolute;
  left: var(--pad);
  bottom: 19%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(13, 14, 11, 0.86);
  border: 1px solid rgba(223, 224, 218, 0.45);
  border-left: 3px solid #e3e4df;
  backdrop-filter: blur(12px);
  color: #f0f1ee;
  font: 9px/1.3 monospace;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.hero.is-xray .xray-telemetry-hud {
  opacity: 1;
  transform: translateY(0);
}

.xray-telemetry-hud__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cdd0c7;
}

.xray-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e3e4df;
  box-shadow: 0 0 12px #e3e4df;
  animation: pulse-dot 1.2s infinite;
}

.xray-telemetry-hud__scale {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d4d5d2;
}

.xray-gradient-bar {
  display: inline-block;
  width: 110px;
  height: 6px;
  background: linear-gradient(
    90deg,
    #e3e4df 0%,
    #cdd0c7 35%,
    #B5894C 70%,
    #ff3b00 100%
  );
}

#scan-scene {
  position: relative;
  z-index: 2;
}

/* Hero Typography & Controls in Workshop Mode */
html,
body,
main {
  overflow-x: clip;
  max-width: 100%;
}

.hero[data-env-mode="workshop"] .hero-word {
  z-index: 4;
  pointer-events: none;
  color: #f8f9f6;
  text-shadow: 0 12px 42px rgba(9, 10, 7, 0.72);
  transition: opacity 0.3s ease;
}

.hero[data-env-mode="workshop"] .red-dot {
  color: #94261F;
}

.hero[data-env-mode="workshop"] .turbine-caption h2 {
  color: #ffffff;
  text-shadow: 0 8px 32px rgba(10, 11, 8, 0.85) !important;
}

.hero[data-env-mode="workshop"] .hero-bottom p {
  color: rgba(223, 224, 218, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero[data-env-mode="workshop"] .journey-play {
  background: rgba(37, 39, 36, 0.92);
  color: #ffffff;
  border: 1px solid rgba(168, 169, 166, 0.45);
  padding: 13px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.hero[data-env-mode="workshop"] .journey-play:hover {
  background: #40423e;
}

.hero[data-env-mode="workshop"] .hero-scroll b {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(21, 22, 19, 0.55);
  backdrop-filter: blur(8px);
}

.hero[data-env-mode="workshop"] .flight-controls button,
.hero[data-env-mode="workshop"] .flight-controls a {
  background: rgba(19, 20, 17, 0.84);
  color: #f6f7f4;
  border-color: rgba(162, 163, 160, 0.35);
}

.hero[data-env-mode="workshop"] .hero-corner {
  color: rgba(223, 224, 218, 0.78) !important;
}

/* Top Workshop Mode & X-Ray Switcher Bar */
.workshop-modebar {
  position: absolute;
  top: 96px;
  left: var(--pad);
  right: var(--pad);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.workshop-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(18, 19, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: #e1e2df;
  font: 10px/1.2 monospace;
  letter-spacing: 0.1em;
  pointer-events: auto;
}

.hero[data-env-mode="studio"] .workshop-telemetry {
  background: rgba(223, 224, 218, 0.88);
  color: #141312;
  border-color: rgba(25, 26, 23, 0.15);
}

.telemetry-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #B5894C;
  box-shadow: 0 0 10px #B5894C;
  animation: pulse-dot 2s infinite;
}

.hero.is-xray .telemetry-dot {
  background: #e3e4df;
  box-shadow: 0 0 12px #e3e4df;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.workshop-switches {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.ws-label-short {
  display: none;
}

.ws-btn {
  padding: 9px 15px;
  font: 10px/1.2 monospace;
  letter-spacing: 0.08em;
  color: rgba(223, 224, 218, 0.82);
  background: rgba(18, 19, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.hero[data-env-mode="studio"] .ws-btn {
  background: rgba(223, 224, 218, 0.88);
  color: #3c3d3a;
  border-color: rgba(25, 26, 23, 0.18);
}

.ws-btn:hover {
  border-color: #cdd0c7;
  color: #ffffff;
}

.ws-btn.is-active {
  background: #141312;
  color: #ffffff !important;
  border-color: #555852;
  box-shadow: 0 6px 20px rgba(37, 39, 36, 0.38);
}

.ws-btn--xray.is-active {
  background: linear-gradient(90deg, #555852, #141312);
  border-color: #e3e4df;
  box-shadow: 0 0 26px rgba(223, 224, 218, 0.58);
}

/* 3D Projected Engineering Hotspot Pins */
.turbine-nodes {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  overflow: hidden;
}

.turbine-node {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-left: -13px;
  margin-top: -13px;
  background: none;
  border: 0;
  color: #ffffff;
  pointer-events: auto;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.turbine-node__pulse {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(223, 224, 218, 0.75);
  background: rgba(37, 39, 36, 0.22);
  animation: node-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes node-ping {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.turbine-node__dot {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(20, 21, 18, 0.92);
  border: 1.5px solid #cdd0c7;
  display: grid;
  place-items: center;
  box-shadow: 0 0 14px rgba(223, 224, 218, 0.55);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.turbine-node__dot i {
  font: 9px/1 monospace;
  font-style: normal;
  font-weight: 700;
  color: #dfe0da;
}

.turbine-node:hover .turbine-node__dot,
.turbine-node.is-selected .turbine-node__dot {
  transform: scale(1.2);
  background: #141312;
  border-color: #ffffff;
}

.turbine-node:hover .turbine-node__dot i,
.turbine-node.is-selected .turbine-node__dot i {
  color: #ffffff;
}

.turbine-node__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 11px;
  background: rgba(16, 17, 14, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 2px solid #cdd0c7;
  backdrop-filter: blur(10px);
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.turbine-node:hover .turbine-node__label,
.turbine-node.is-selected .turbine-node__label {
  background: rgba(37, 39, 36, 0.92);
  border-color: #dfe0da;
  transform: translateX(4px);
}

.turbine-node__label b {
  font: 8px/1.1 monospace;
  letter-spacing: 0.12em;
  color: #dfe0da;
}

.turbine-node__label strong {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2px;
  white-space: nowrap;
}

.turbine-node__label em {
  font: 9px/1.2 monospace;
  font-style: normal;
  color: rgba(223, 224, 218, 0.78);
  margin-top: 2px;
}

/* Stagger desktop 3D pin labels so nodes 01, 02, 03, 04 never overlap each other */
.turbine-node[data-node-id="compressor"] .turbine-node__label {
  position: absolute;
  right: 34px;
  top: -12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 2px solid #cdd0c7;
}

.turbine-node[data-node-id="combustor"] .turbine-node__label {
  position: absolute;
  left: -30px;
  bottom: 34px;
}

.turbine-node[data-node-id="hpt"] .turbine-node__label {
  position: absolute;
  left: -20px;
  top: 34px;
}

.turbine-node[data-node-id="power-turbine"] .turbine-node__label {
  position: absolute;
  left: 34px;
  top: -14px;
}

/* Mobile Quick-Select Node Bar (Hidden on desktop, shown on mobile) */
.mobile-node-bar {
  display: none;
}

/* Interactive X-Ray Cursor Visor (Desktop) */
.xray-visor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.xray-visor.is-visible {
  opacity: 1;
}

.xray-visor__ring {
  width: 150px;
  height: 150px;
  margin-left: -75px;
  margin-top: -75px;
  border-radius: 50%;
  border: 1px dashed rgba(223, 224, 218, 0.45);
  background: radial-gradient(
    circle,
    rgba(223, 224, 218, 0.08) 0%,
    rgba(37, 39, 36, 0.03) 60%,
    transparent 72%
  );
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.hero.is-xray .xray-visor__ring,
.xray-visor.is-locked .xray-visor__ring {
  border-style: solid;
  border-color: rgba(223, 224, 218, 0.9);
  box-shadow:
    0 0 30px rgba(223, 224, 218, 0.28),
    inset 0 0 20px rgba(223, 224, 218, 0.18);
  transform: scale(1.08);
}

.xray-visor__data {
  position: absolute;
  left: 84px;
  top: -28px;
  width: max-content;
  max-width: 250px;
  padding: 7px 11px;
  background: rgba(14, 15, 12, 0.84);
  border-left: 2px solid #cdd0c7;
  backdrop-filter: blur(8px);
  color: #edeeeb;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.xray-visor__data span {
  font: 8px/1.2 monospace;
  letter-spacing: 0.1em;
  color: #cdd0c7;
}

.xray-visor__data strong {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.xray-visor__data small {
  font-size: 9px;
  color: rgba(223, 224, 218, 0.72);
}

/* Floating Engineering Node Passport Drawer */
.node-passport {
  position: absolute;
  right: var(--pad);
  bottom: 8%;
  z-index: 12;
  width: min(410px, calc(100vw - 32px));
  max-height: calc(100svh - 120px);
  overflow-y: auto;
  background: rgba(17, 18, 15, 0.94);
  border: 1px solid rgba(223, 224, 218, 0.32);
  backdrop-filter: blur(22px);
  color: #f5f6f3;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.node-passport.is-open {
  opacity: 1;
  transform: translateY(0);
}

.node-passport__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.node-passport__code {
  font: 9px/1.2 monospace;
  letter-spacing: 0.12em;
  color: #cdd0c7;
  display: block;
  margin-bottom: 4px;
}

.node-passport__header h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.node-passport__close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.node-passport__close:hover {
  background: #141312;
  border-color: #141312;
}

.node-passport__compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0e0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 12px;
  user-select: none;
}

.np-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-before-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
  z-index: 2;
}

.np-img--before {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: left center;
  filter: sepia(0.38) contrast(1.25) brightness(0.76) saturate(0.82);
}

.np-tag {
  position: absolute;
  bottom: 8px;
  padding: 4px 8px;
  font: 8px/1.1 monospace;
  letter-spacing: 0.08em;
  background: rgba(12, 13, 10, 0.82);
  color: #ffffff;
  z-index: 3;
}

.np-tag--before {
  left: 8px;
  border-left: 2px solid #B5894C;
}

.np-tag--after {
  right: 8px;
  border-right: 2px solid #B5894C;
}

.np-handle {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  background: #141312;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-size: 11px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.np-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
}

.node-passport__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.node-passport__specs > div {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.node-passport__specs .np-spec-wide {
  grid-column: 1 / -1;
}

.node-passport__specs span {
  display: block;
  font: 8px/1.2 monospace;
  color: #a1a29f;
  letter-spacing: 0.08em;
}

.node-passport__specs strong {
  display: block;
  font-size: 12px;
  color: #fafbf8;
  margin-top: 2px;
}

.node-passport__body p {
  font-size: 11.5px;
  line-height: 1.45;
  color: #d4d5d2;
  margin-bottom: 6px;
}

.node-passport__body strong {
  color: #ffffff;
}

.node-passport__catalog {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.np-catalog-label {
  display: block;
  font: 8px/1.2 monospace;
  letter-spacing: 0.08em;
  color: #dfe0da;
  margin-bottom: 6px;
}

.np-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.np-catalog-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f5f2;
  text-align: left;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.np-catalog-item:hover {
  background: rgba(37, 39, 36, 0.35);
  border-color: #cdd0c7;
}

.np-catalog-item strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
}

.np-catalog-item small {
  display: block;
  font: 8.5px/1.2 monospace;
  color: #a1a29f;
  margin-top: 2px;
}

.np-catalog-item span {
  font: 9.5px/1.1 monospace;
  color: #cdd0c7;
  white-space: nowrap;
}

.node-passport__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.np-action {
  flex: 1;
  padding: 10px 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.np-action--primary {
  background: #141312;
  border-color: #141312;
  color: #ffffff;
}

.np-action--primary:hover {
  background: #40423e;
}

.np-action--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e7e8e5;
}

.np-action--secondary:hover {
  border-color: #cdd0c7;
  color: #ffffff;
}

.catalog-flash {
  animation: catalog-highlight 1.8s ease;
}

@keyframes catalog-highlight {
  0%,
  30% {
    box-shadow: 0 0 0 3px rgba(37, 39, 36, 0.35);
    background-color: rgba(37, 39, 36, 0.06);
  }
  100% {
    box-shadow: none;
  }
}

/* ==========================================================================
   Yekaterinburg Plant Interactive Switcher (#place)
   Positioned in the bottom-right dock so it NEVER overlaps "ЕКАТЕРИНБУРГ."
   ========================================================================== */
/* All copy, controls and statistics stay in the document flow.
   Only the image inside the clipped figure can move. */
.plant-story {
  padding: clamp(38px, 6vw, 90px) var(--pad);
  background: var(--action);
  color: #fff;
  scroll-margin-top: 1rem;
}
.plant-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: clamp(18px, 3vw, 40px);
}
.plant-heading h2 {
  font-size: clamp(32px, 7.5vw, 126px);
  letter-spacing: -0.065em;
  line-height: 1.04;
  font-weight: 500;
  margin: 0;
}
.plant-heading h2 span {
  color: #d16060;
}
.plant-views {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.plant-views button {
  background: transparent;
  color: #f2f3f0;
  border: 1px solid #85877f;
  min-height: 42px;
  padding: 8px 15px;
  font-size: 14px;
}
.plant-views button[aria-pressed="true"] {
  background: var(--silver);
  color: var(--ink);
  border-color: var(--silver);
}
.plant-views button:focus-visible,
.plant-story a:focus-visible {
  outline: 2px solid white;
}
.plant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(18px, 3vw, 48px);
}
.plant-picture {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #333632;
}
.plant-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plant-copy {
  min-width: 0;
  align-self: center;
}
.plant-copy h3 {
  font-size: clamp(26px, 3.2vw, 58px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 0;
  overflow-wrap: break-word;
}
.plant-copy p {
  margin: 16px 0 24px;
  font-size: clamp(14px, 1.12vw, 18px);
  line-height: 1.52;
  max-width: 51ch;
  color: #e1e2db;
}
.plant-copy .text-link {
  color: inherit;
}
@media (min-width: 820px) {
  .plant-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }
  .plant-views {
    margin-bottom: 0.25rem;
  }
}
@media (max-width: 420px) {
  .plant-views button {
    padding-inline: 12px;
  }
  .plant-picture {
    aspect-ratio: 1.6;
  }
}
/* Dedicated Architectural Telemetry Band directly below #place */
.place-stats-band {
  background: #141312;
  border-top: 1px solid rgba(223, 224, 218, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px var(--pad);
  position: relative;
  z-index: 4;
}

.place-stats-band__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.place-stats-band__inner > div {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid #cdd0c7;
  color: #ffffff;
}

.place-stats-band__inner strong {
  display: block;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #dfe0da;
}

.place-stats-band__inner span {
  display: block;
  font: 9px/1.35 monospace;
  letter-spacing: 0.06em;
  color: rgba(223, 224, 218, 0.8);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .place-stats-band__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .place-stats-band__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Interactive Blade Restoration Lab (#restoration-lab)
   ========================================================================== */
.restoration-lab {
  background: #141312;
  color: #f6f7f4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-header {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 6%;
  align-items: end;
  margin-bottom: 48px;
}

.lab-eyebrow {
  display: inline-block;
  font: 10px/1.3 monospace;
  letter-spacing: 0.14em;
  color: #cdd0c7;
  margin-bottom: 14px;
}

.lab-header h2 {
  color: #ffffff;
}

.lab-header h2 em {
  color: #cdd0c7;
}

.lab-lead {
  font-size: 14.5px;
  line-height: 1.65;
  color: #a1a29f;
  max-width: 480px;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: start;
}

.lab-stage {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #0b0c09;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  user-select: none;
}

.lab-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lab-before-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 calc(100% - var(--split, 52%)) 0 0);
  z-index: 2;
}

.lab-img--before {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: left center;
  filter: sepia(0.35) contrast(1.22) brightness(0.8);
}

.lab-wear-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 45% 32%,
    rgba(255, 90, 0, 0.22),
    transparent 55%
  );
  pointer-events: none;
}

.lab-laser-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e3e4df;
  box-shadow:
    0 0 22px #e3e4df,
    0 0 8px #ffffff;
  z-index: 4;
  pointer-events: none;
}

.lab-laser-pill {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 7px 12px;
  background: #141312;
  border: 1px solid #dfe0da;
  color: #ffffff;
  font: 9px/1 monospace;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.lab-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
}

.lab-badges {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.lab-badge {
  padding: 6px 10px;
  background: rgba(11, 12, 9, 0.85);
  backdrop-filter: blur(8px);
  font: 8.5px/1.2 monospace;
  letter-spacing: 0.07em;
  color: #e7e8e5;
}

.lab-badge--before {
  border-left: 2px solid #B5894C;
}

.lab-badge--after {
  border-right: 2px solid #B5894C;
}

.lab-hotspot {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: rgba(15, 16, 13, 0.86);
  border: 1px solid rgba(223, 224, 218, 0.5);
  color: #ffffff;
  backdrop-filter: blur(8px);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.lab-hotspot span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #141312;
  display: grid;
  place-items: center;
  font: 10px/1 monospace;
  font-weight: 700;
}

.lab-hotspot b {
  font-size: 11px;
  font-weight: 500;
}

.lab-hotspot.is-active,
.lab-hotspot:hover {
  background: #141312;
  border-color: #ffffff;
  transform: scale(1.05);
}

.lab-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lab-zone-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #cdd0c7;
}

.lab-zone-code {
  display: block;
  font: 9px/1.2 monospace;
  letter-spacing: 0.1em;
  color: #cdd0c7;
  margin-bottom: 8px;
}

.lab-zone-card h3 {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 10px;
}

.lab-zone-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #d4d5d2;
  margin-bottom: 16px;
}

.lab-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lab-metrics > div {
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-metrics span {
  display: block;
  font: 7.5px/1.2 monospace;
  color: #a1a29f;
  letter-spacing: 0.06em;
}

.lab-metrics strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-top: 4px;
}

.lab-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lab-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d4d5d2;
  text-align: left;
  transition: all 0.2s ease;
}

.lab-step b {
  font: 10px/1.2 monospace;
  color: #cdd0c7;
  padding-top: 2px;
}

.lab-step strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
}

.lab-step small {
  display: block;
  font-size: 10.5px;
  color: #a1a29f;
  margin-top: 3px;
  line-height: 1.35;
}

.lab-step.is-active,
.lab-step:hover {
  background: rgba(37, 39, 36, 0.28);
  border-color: #cdd0c7;
}

.lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lab-actions .pill.outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.lab-actions .pill.outline:hover {
  background: #ffffff;
  color: #141312;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE LAYOUT (ZERO TEXT OVERLAP)
   ========================================================================== */
@media (max-width: 960px) {
  .lab-header,
  .lab-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .lab-stage,
  .lab-panel,
  .lab-zone-card {
    min-width: 0;
  }
  .place-hub-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  /* 1. Single compact row for modebar right below fixed header (72px) */
  .workshop-modebar {
    top: 76px;
    left: var(--pad);
    right: var(--pad);
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
  }

  .workshop-telemetry {
    display: none;
  }

  .workshop-switches {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 6px;
  }

  .ws-label-full {
    display: none;
  }

  .ws-label-short {
    display: inline;
  }

  .ws-btn {
    min-width: 0;
    padding: 8px 4px;
    font-size: 9px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 2. Push Hero Titles & Chapter Captions BELOW the modebar so they NEVER overlap! */
  .hero .word-one {
    font-size: 10.2vw !important;
  }

  .hero .word-two {
    font-size: 12.2vw !important;
  }

  /* When scrolling inside the turbine (is-exploring), cleanly fade out main title so chapter title has 100% clean space */
  .hero.is-exploring .hero-word {
    opacity: 0 !important;
    pointer-events: none;
  }

  .hero .turbine-caption {
    top: 122px !important;
    left: var(--pad) !important;
    right: var(--pad) !important;
    max-width: none !important;
  }

  .hero .turbine-caption h2 {
    font-size: 28px !important;
    line-height: 1.04 !important;
    margin: 0 !important;
  }

  /* 3. Compact numbered dots on the 3D turbine + clean bottom chip strip on mobile */
  .turbine-node__label {
    display: none !important;
  }

  /* Guarantee zero collision between Hero Bottom ("ПРОЛЕТЕТЬ ВНУТРЬ"), Flight Controls, and Mobile Node Bar */
  .hero .hero-bottom {
    bottom: 84px !important;
    left: var(--pad) !important;
    right: var(--pad) !important;
    z-index: 9 !important;
    display: block !important;
  }

  .hero .hero-bottom p {
    font-size: 11px !important;
    line-height: 1.45 !important;
    margin: 0 0 10px 0 !important;
    max-width: 245px !important;
  }

  .hero .hero-bottom .journey-play {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    font-size: 10px !important;
    background: rgba(37, 39, 36, 0.94) !important;
    color: #ffffff !important;
    border: 1px solid #c5c7bf !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    position: relative;
    z-index: 10;
  }

  .hero .hero-scroll {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  .hero.is-exploring .hero-bottom {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .hero .flight-controls {
    bottom: 82px !important;
    z-index: 9 !important;
  }

  .mobile-node-bar {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    bottom: 38px;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .hero .hero-corner {
    bottom: 10px !important;
    z-index: 8 !important;
  }

  .mobile-node-chip {
    min-width: 0;
    padding: 7px 3px;
    background: rgba(16, 17, 14, 0.88);
    border: 1px solid rgba(223, 224, 218, 0.42);
    backdrop-filter: blur(10px);
    color: #e7e8e5;
    font: 8px/1.15 monospace;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-node-chip.is-selected,
  .mobile-node-chip:active {
    background: #141312;
    border-color: #ffffff;
    color: #ffffff;
  }

  .xray-visor {
    display: none !important;
  }

  .xray-telemetry-hud {
    left: var(--pad);
    right: var(--pad);
    top: 112px;
    bottom: auto;
    padding: 6px 10px;
    font-size: 8px;
    pointer-events: none;
  }

  .node-passport {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 78svh;
    padding: 15px;
  }

  .lab-stage {
    aspect-ratio: 4 / 3;
  }

  .lab-laser-pill {
    padding: 5px 8px;
    font-size: 7.5px;
  }

  .lab-badges {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 6px;
  }

  .lab-badge {
    padding: 4px 6px;
    font-size: 7px;
  }

  .lab-hotspot {
    padding: 4px;
    border-radius: 50%;
  }

  .lab-hotspot b {
    display: none;
  }

  .lab-steps,
  .lab-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep interactive labels legible in both studio and workshop lighting. */
.hero[data-env-mode] .ws-btn.is-active {
  background: var(--action);
  color: var(--on-action) !important;
  border-color: var(--silver);
}
.workshop-modebar :focus-visible,
.restoration-lab :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* The loading frame comes from the same closed workshop scene as the first live frame. */
.hero[data-env-mode="workshop"] .drawing-ribbon:not(.ready) {
  background: #141312 url("assets/hero/workshop-flight-wide.jpg") center/contain
    no-repeat;
}
@media (max-aspect-ratio: 9/10) {
  .hero[data-env-mode="workshop"] .drawing-ribbon:not(.ready) {
    background-image: url("assets/hero/workshop-flight-portrait.jpg");
  }
}
.hero[data-env-mode="workshop"] .drawing-ribbon:not(.ready) .workshop-diorama {
  visibility: hidden;
}
.scene-video .xray-visor,
.scene-video .ws-btn--xray,
.scene-video .turbine-nodes {
  display: none;
}
.hero[data-env-mode="workshop"] #scan-fallback {
  background: #141312;
}

/* The opening frame is unobstructed. Details belong to the selected node. */
.workshop-modebar {
  justify-content: flex-end;
}
.hero:not(.is-exploring) .turbine-nodes {
  visibility: hidden;
}
.turbine-node .turbine-node__label {
  visibility: hidden;
}
.turbine-node:hover .turbine-node__label,
.turbine-node:focus-visible .turbine-node__label {
  visibility: visible;
}

/* One normal-flow row per word. Character reveals cannot paint into the next line. */
#hero-title {
  position: absolute;
  z-index: 4;
  inset-inline: var(--pad);
  top: max(138px, 18%);
  display: grid;
  gap: clamp(4px, 0.5vw, 10px);
  margin: 0;
  pointer-events: none;
}
#hero-title .hero-word {
  position: static;
  line-height: 1.05;
  letter-spacing: -0.022em;
  overflow: hidden;
  overflow: clip;
  justify-self: start;
  max-width: 100%;
}
@media (min-width: 701px) and (max-width: 820px) {
  .workshop-modebar {
    top: 91px;
  }
}
@media (max-width: 820px) {
  #hero-title {
    top: 126px;
  }
}
@media (min-width: 701px) and (max-width: 820px) {
  #hero-title {
    top: 139px;
  }
}
@media (max-height: 560px) and (min-width: 701px) {
  #hero-title {
    top: 131px;
    gap: 3px;
  }
  #hero-title .word-one {
    font-size: clamp(30px, 5.8vw, 52px) !important;
  }
  #hero-title .word-two {
    font-size: clamp(34px, 6.6vw, 58px) !important;
  }
}
@media (max-height: 470px) and (max-width: 820px) {
  #hero-title .word-one {
    font-size: clamp(28px, 5vw, 38px) !important;
  }
  #hero-title .word-two {
    font-size: clamp(30px, 5.8vw, 43px) !important;
  }
  .hero:not(.is-exploring) .mobile-node-bar {
    display: none;
  }
  .hero:not(.is-exploring) .hero-bottom {
    bottom: 30px !important;
  }
}
