/* The photographic layers and their drawing share the original camera registration. */
.build-view {
  --plate-ink: #163744;
  --light-ink: #d9f1f7;
  --ice: #81dffd;
  border: 1px solid #244751;
  background: var(--plate-ink);
  border-radius: 6px;
  overflow: hidden;
}
.build-bar, .build-view .build-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px clamp(13px,1.45vw,24px);
}
.build-bar {
  min-height: 53px;
  color: var(--light-ink);
  background: #173641;
  border-bottom: 1px solid #51727c;
}
.build-tag, .build-elevation, .build-step, .build-view-number {
  font: 550 9px/1.35 Sora, Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.build-tag { display: flex; gap: 8px; align-items: center; }
.build-tag i { height: 6px; width: 6px; background: var(--blue); }
.build-slash { color: #78aec2; }
.build-run {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 10px;
  gap: 6px;
  background: transparent;
  border: 1px solid #78949c;
  border-radius: 3px;
  color: #f1fbfe;
  font-size: 12px;
  font-weight: 550;
}
.build-run:hover { background: #2c5261; border-color: var(--ice); }
.build-run:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.build-run[hidden] { display: none; }
.build-run svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.build-field {
  position: relative;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(#b9e9f210 1px,transparent 1px) center/26px 26px,
    linear-gradient(90deg,#b9e9f210 1px,transparent 1px) center/26px 26px,
    radial-gradient(ellipse at 53% 44%,#648b92 0%,#355d68 34%,#204652 62%,#12313f 100%);
}
.build-orbit {
  position: absolute;
  width: 76%;
  max-width: 450px;
  aspect-ratio: 1;
  border: 1px dashed #d1f6ff38;
  border-radius: 50%;
}
.build-orbit::before,.build-orbit::after { content: ''; position: absolute; background: #c1f3ff24; }
.build-orbit::before { width: 180%; top: 50%; height: 1px; left: -40%; }
.build-orbit::after { height: 170%; left: 50%; width: 1px; top: -35%; }
.build-registration {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 13px;
  opacity: .7;
  background:
    linear-gradient(#a8ced6,#a8ced6) left top / 10px 1px,
    linear-gradient(#a8ced6,#a8ced6) left top / 1px 10px,
    linear-gradient(#a8ced6,#a8ced6) right top / 10px 1px,
    linear-gradient(#a8ced6,#a8ced6) right top / 1px 10px,
    linear-gradient(#a8ced6,#a8ced6) left bottom / 10px 1px,
    linear-gradient(#a8ced6,#a8ced6) left bottom / 1px 10px,
    linear-gradient(#a8ced6,#a8ced6) right bottom / 10px 1px,
    linear-gradient(#a8ced6,#a8ced6) right bottom / 1px 10px;
  background-repeat: no-repeat;
}
.build-elevation { position: absolute; top: 26px; right: 23px; writing-mode: vertical-rl; color: #c2dce5; font-size: 8px; }
.build-unit {
  position: relative;
  z-index: 1;
  height: calc(100% - 24px);
  aspect-ratio: 12 / 17;
  max-width: 67%;
}
.build-photo,.build-drawing,.build-components { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: contain; }
.build-photo { filter: drop-shadow(3px 7px 5px #070f1555); }
.build-components,.build-drawing,.build-scanner { opacity: 0; pointer-events: none; }
.build-status { position: absolute; z-index: 2; bottom: 25px; left: 25px; color: #eefbff; line-height: 1.2; }
.build-step { display: block; font-variant-numeric: tabular-nums; color: var(--ice); font-size: 9px; }
.build-status strong { display: block; margin-top: 3px; font-weight: 500; font-size: 12px; }
.build-view .build-footer { min-height: 53px; border-top: 1px solid #adc7cc; background: #edf5f6; }
.build-view-number { color: #466571; font-size: 9px; }
.build-footer .segmented { background: #d9e9ed; }
.build-footer .segmented button { min-height: 34px; }

.build-view[data-phase]:not([data-phase="complete"]) .build-photo { opacity: .15; }
.build-view[data-phase]:not([data-phase="complete"]) .build-drawing { opacity: 1; }
.build-view[data-phase="frame"] .build-drawing { animation: build-draw .8s cubic-bezier(.2,.7,.3,1) both; }
.build-view[data-phase="vessels"] .build-components,
.build-view[data-phase="pipes"] .build-components { opacity: 1; }
.build-tanks,.build-filter,.build-finish { opacity: 0; }
[data-phase="vessels"] .build-tanks { animation: build-tanks-in .65s cubic-bezier(.2,.8,.2,1) both; }
[data-phase="vessels"] .build-filter { animation: build-filter-in .58s .12s cubic-bezier(.2,.8,.2,1) both; }
[data-phase="pipes"] .build-tanks,[data-phase="pipes"] .build-filter { opacity: 1; }
[data-phase="pipes"] .build-finish { opacity: 1; animation: build-material 1.05s cubic-bezier(.42,0,.26,1) both; }
[data-phase="pipes"] .build-scanner {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 2px;
  background: linear-gradient(90deg,transparent,#6adcff 15%,#d3fcff 48%,#6adcff 85%,transparent);
  box-shadow: 0 0 11px #61cfff;
  animation: build-sweep 1.05s cubic-bezier(.42,0,.26,1) both;
}
@keyframes build-draw { from { clip-path: inset(98% 0 0); } to { clip-path: inset(0); } }
@keyframes build-tanks-in { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
@keyframes build-filter-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes build-material { from { clip-path: inset(0 0 100%); } to { clip-path: inset(0); } }
@keyframes build-sweep { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media(max-width:1000px) {
  .build-status { bottom: 20px; left: 17px; }
  .build-status strong { font-size: 10px; }
}
@media(max-width:700px) {
  .build-bar,.build-view .build-footer { min-height: 47px; padding: 4px 12px; }
  .build-tag,.build-view-number { font-size: 8px; }
  .build-run { min-height: 38px; }
  .build-tag { gap: 6px; }
  .build-footer .segmented button { min-height: 34px; }
  .build-elevation { right: 16px; top: 23px; font-size: 7px; }
  .build-status { left: 15px; bottom: 20px; }
  .build-unit { max-width: 64%; height: calc(100% - 15px); }
  .build-registration { inset: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  [data-phase="vessels"] .build-tanks,[data-phase="vessels"] .build-filter { opacity: 1; }
  [data-phase="pipes"] .build-scanner { display: none; }
}
.build-footer .segmented[hidden] { display: none; }
.build-announcement { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
