/**
 * Erection Animations and Project Renderings.
 */

.ai-service--erection .ai-service-origin {
  margin-top: 32px;
  max-width: 900px;
}

.ai-service--erection .ai-erection-capabilities {
  margin-top: 42px;
}

.ai-phase-tool {
  --ai-phase-progress: 0%;
  --ai-phase-ratio: 0;
  background: linear-gradient(145deg,var(--ai-color-ink) 0%,#0a1026 100%);
  border: 1px solid rgba(181,190,255,.22);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(2,5,18,.42),inset 0 1px 0 rgba(255,255,255,.06);
  margin-top: 48px;
  overflow: hidden;
  position: relative;
}

.ai-phase-tool::before {
  background: linear-gradient(90deg,#8794ff 0%,#b7c0ff 38%,rgba(183,192,255,0) 82%);
  content: "";
  height: 2px;
  left: 28px;
  opacity: .9;
  position: absolute;
  right: 28px;
  top: 0;
  z-index: 3;
}

.ai-phase-tool__topbar {
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.13);
  display: flex;
  justify-content: space-between;
  padding: 20px 26px 18px;
}

.ai-phase-tool__topbar > div span, .ai-phase-tool__topbar > div strong {
  display: block;
}

.ai-phase-tool__topbar > div span {
  color: #b6beff;
  font-family: var(--ai-data);
  font-size: var(--ai-type-label-size);
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.ai-phase-tool__topbar > div strong {
  font-size: 14px;
  letter-spacing: -.01em;
}

.ai-phase-tool__topbar p {
  align-items: center;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 99px;
  color: #d0d5e3;
  display: flex;
  font-size: var(--ai-type-body-size);
  gap: 8px;
  margin: 0;
  padding: 8px 11px;
}

.ai-phase-tool__topbar p i {
  background: #7fc259;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(127,194,89,.12);
  height: 7px;
  transition: background .2s,box-shadow .2s;
  width: 7px;
}

.ai-phase-tool.is-reversing .ai-phase-tool__topbar p i {
  background: #f0b963;
  box-shadow: 0 0 0 5px rgba(240,185,99,.13);
}

.ai-phase-tool.is-playing .ai-phase-tool__topbar p i,
.ai-phase-tool.is-forward .ai-phase-tool__topbar p i {
  animation: ai-phase-status-pulse 1.25s ease-in-out infinite;
}

@keyframes ai-phase-status-pulse {
  50% { box-shadow: 0 0 0 8px rgba(127,194,89,0); }
}

.ai-phase-tool__topbar p b {
  color: var(--ai-color-white);
  font-family: var(--ai-data);
  font-size: var(--ai-type-body-size);
  margin-left: 5px;
}

.ai-phase-tool__topbar p small {
  color: #7f89a2;
  font-family: var(--ai-data);
}

.ai-phase-tool__screen {
  aspect-ratio: 16/9;
  background: #050915;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 19px;
  box-shadow: 0 18px 45px rgba(0,0,0,.3);
  margin: 20px 20px 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.ai-phase-tool__screen::after {
  background: linear-gradient(180deg,rgba(2,6,18,.18) 0%,transparent 38%,rgba(2,6,18,.65) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.ai-phase-tool__screen img, .ai-phase-tool__screen video {
  height: 100%;
  object-fit: cover;
  opacity: .96;
  transition: filter .25s,opacity .25s;
  width: 100%;
}

.ai-phase-tool__screen video {
  background: #050915;
  display: block;
  object-fit: contain;
}

.ai-phase-tool__project {
  background: rgba(8,13,34,.68);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 11px;
  left: 20px;
  padding: 10px 12px;
  position: absolute;
  top: 20px;
  z-index: 2;
}

.ai-phase-tool__project span,
.ai-phase-tool__project strong {
  display: block;
}

.ai-phase-tool__project span {
  color: #b6beff;
  font-family: var(--ai-data);
  font-size: var(--ai-type-label-size);
  letter-spacing: .07em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.ai-phase-tool__project strong {
  color: var(--ai-color-white);
  font-size: var(--ai-type-label-size);
}

.ai-phase-tool__chapters {
  align-items: center;
  background: rgba(8,13,34,.76);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  padding: 7px 8px 7px 12px;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 3;
}

.ai-phase-tool__chapters > span {
  color: #dfe3ff;
  font-family: var(--ai-data);
  font-size: var(--ai-type-label-size);
  min-width: 74px;
  white-space: nowrap;
}

.ai-phase-tool__chapters ol {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-phase-tool__chapters li {
  margin: 0;
}

.ai-phase-tool__chapters button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--ai-color-secondary-on-dark);
  cursor: pointer;
  font-family: var(--ai-data);
  font-size: var(--ai-type-control-size);
  height: 44px;
  padding: 0;
  transition: background .2s,color .2s;
  width: 44px;
}

.ai-phase-tool__chapters button:hover {
  background: rgba(255,255,255,.08);
  color: var(--ai-color-white);
}

.ai-phase-tool__chapters li.is-active button {
  background: #eef0ff;
  color: #172046;
}

.ai-phase-tool__chapters li.is-past:not(.is-active) button {
  color: #bbc2ff;
}

.ai-phase-tool__chapters button:focus-visible {
  outline: 2px solid var(--ai-color-accent-inverse);
  outline-offset: 2px;
}

.ai-phase-tool__hud {
  background: rgba(7,12,31,.78);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  bottom: 20px;
  left: 20px;
  max-width: 520px;
  padding: 16px 18px;
  position: absolute;
  z-index: 2;
}

.ai-phase-tool__hud span, .ai-phase-tool__hud small {
  color: #b6beff;
  display: block;
  font-family: var(--ai-data);
  font-size: var(--ai-type-small-size);
}

.ai-phase-tool__hud strong {
  display: block;
  font-size: clamp(17px,2vw,22px);
  letter-spacing: -.02em;
  margin: 5px 0 6px;
}

.ai-phase-tool__controls {
  padding: 25px 26px 20px;
}

.ai-phase-tool__controls-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.ai-phase-tool__controls label,
.ai-phase-tool__controls label span,
.ai-phase-tool__controls label small {
  display: block;
}

.ai-phase-tool__controls label {
  align-items: baseline;
}

.ai-phase-tool__controls label span {
  font-size: var(--ai-type-label-size);
  font-weight: 700;
}

.ai-phase-tool__controls label small {
  color: #929bb0;
  font-size: var(--ai-type-label-size);
  margin-top: 3px;
}

.ai-phase-tool__range {
  margin: 22px 0 16px;
  padding: 0 9px;
  position: relative;
}

.ai-phase-tool__range::before, .ai-phase-tool__range::after {
  border-radius: 99px;
  content: "";
  height: 5px;
  left: 9px;
  pointer-events: none;
  position: absolute;
  right: 9px;
  top: 10px;
  transform: translateY(-50%);
}

.ai-phase-tool__range::before {
  background: #303952;
}

.ai-phase-tool__range::after {
  background: linear-gradient(90deg,#7483ff,#c2c9ff);
  box-shadow: 0 0 16px rgba(132,144,255,.38);
  transform: translateY(-50%) scaleX(var(--ai-phase-ratio));
  transform-origin: left center;
}

.ai-phase-tool__controls input {
  appearance: none;
  background-color: transparent;
  background-image: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  display: block;
  height: 20px;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.ai-phase-tool__controls input::-webkit-slider-runnable-track {
  background: transparent;
  border: 0;
  box-shadow: none;
  height: 4px;
}

.ai-phase-tool__controls input::-webkit-slider-thumb {
  appearance: none;
  background: var(--ai-color-white);
  border: 4px solid #8490ff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(132,144,255,.15),0 4px 12px rgba(0,0,0,.28);
  height: 22px;
  margin-top: -9px;
  width: 22px;
}

.ai-phase-tool__controls input::-moz-range-track {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ai-phase-tool__controls input::-moz-range-progress {
  background: transparent;
}

.ai-phase-tool__controls input::-moz-range-thumb {
  background: var(--ai-color-white);
  border: 4px solid #8490ff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(132,144,255,.15),0 4px 12px rgba(0,0,0,.28);
  height: 14px;
  width: 14px;
}

.ai-phase-tool__time {
  align-items: center;
  color: #7f89a2;
  display: grid;
  font-family: var(--ai-data);
  font-size: var(--ai-type-label-size);
  grid-template-columns: 1fr auto 1fr;
  margin-top: 6px;
}

.ai-phase-tool__time output {
  color: #c6ceff;
}

.ai-phase-tool__time span {
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ai-phase-tool__time time {
  justify-self: end;
}

.ai-phase-tool__anchors {
  border-top: 1px solid rgba(255,255,255,.13);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  padding: 18px 26px 21px;
}

.ai-phase-tool__anchors div {
  border-left: 1px solid rgba(255,255,255,.13);
  padding: 0 20px;
}

.ai-phase-tool__anchors div:first-child {
  border-left: 0;
  padding-left: 0;
}

.ai-phase-tool__anchors span, .ai-phase-tool__anchors strong {
  display: block;
}

.ai-phase-tool__anchors span {
  color: #8790a7;
  font-size: var(--ai-type-label-size);
  margin-bottom: 5px;
}

.ai-phase-tool__anchors strong {
  font-size: var(--ai-type-label-size);
}

@media (prefers-reduced-motion: reduce) {
  .ai-phase-tool *,
  .ai-phase-tool *::before,
  .ai-phase-tool *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.ai-simulation-library {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
}

.ai-simulation-case {
  background: var(--ai-color-white);
  border: 1px solid var(--ai-line);
  border-radius: 20px;
  overflow: hidden;
}

.ai-simulation-case.is-featured {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: 1.45fr .55fr;
}

.ai-simulation-case__media {
  background: #090e25;
  overflow: hidden;
  position: relative;
}

.ai-simulation-case__media video {
  aspect-ratio: 16/9;
  background: #090e25;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.ai-simulation-case__media > span {
  background: rgba(13,20,50,.9);
  color: var(--ai-color-white);
  font-size: var(--ai-type-label-size);
  left: 14px;
  padding: 7px 9px;
  position: absolute;
  top: 14px;
}

.ai-simulation-case__body {
  padding: 26px;
}

.ai-simulation-case__body header p {
  color: var(--ai-blue);
  font-size: var(--ai-type-body-size);
  font-weight: 700;
  margin: 0 0 7px;
}

.ai-simulation-case__body h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 22px;
}

.ai-simulation-case__body dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.ai-simulation-case__body dl div {
  border-left: 1px solid var(--ai-line);
  border-top: 1px solid var(--ai-line);
  padding: 13px 11px;
}

.ai-simulation-case__body dl div:nth-child(odd) {
  border-left: 0;
  padding-left: 0;
}

.ai-simulation-case__body dt {
  color: var(--ai-muted);
  font-size: var(--ai-type-label-size);
}

.ai-simulation-case__body dd {
  color: var(--ai-ink);
  font-family: var(--ai-data);
  font-size: var(--ai-type-small-size);
  line-height: 1.45;
  margin: 5px 0 0;
}

.ai-simulation-case__body .is-pending dd {
  color: #8c6270;
}

.ai-simulation-case.is-featured .ai-simulation-case__body {
  align-self: center;
  padding: 32px;
}

.ai-simulation-case.is-featured .ai-simulation-case__body dl {
  grid-template-columns: 1fr;
}

.ai-simulation-case.is-featured .ai-simulation-case__body dl div, .ai-simulation-case.is-featured .ai-simulation-case__body dl div:nth-child(odd) {
  border-left: 0;
  padding-left: 0;
}

.ai-simulation-note {
  background: #eceef7;
  border: 1px solid #d7dbea;
  border-radius: 14px;
  color: #586177;
  font-size: var(--ai-type-label-size);
  line-height: 1.6;
  margin: 16px 0 0;
  padding: 17px 20px;
}

.ai-simulation-note strong {
  color: var(--ai-blue);
}

.ai-fact-sheet {
  background: var(--ai-color-white);
  border: 1px solid var(--ai-line);
  border-radius: var(--ai-radius);
  margin: 0;
  padding: 12px 30px;
}

.ai-fact-sheet div {
  border-bottom: 1px solid var(--ai-line);
  display: grid;
  gap: 20px;
  grid-template-columns: .65fr 1.35fr;
  padding: 21px 0;
}

.ai-fact-sheet div:last-child {
  border-bottom: 0;
}

.ai-fact-sheet dt {
  color: var(--ai-blue);
  font-family: var(--ai-mono);
  font-size: var(--ai-type-label-size);
  letter-spacing: 0;
}

.ai-fact-sheet dd {
  color: var(--ai-ink);
  font-size: var(--ai-type-small-size);
  margin: 0;
}

.ai-section--navy .ai-fact-sheet {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

.ai-section--navy .ai-fact-sheet div {
  border-color: rgba(255,255,255,.12);
}

.ai-section--navy .ai-fact-sheet dt {
  color: var(--ai-color-accent-inverse);
}

.ai-section--navy .ai-fact-sheet dd {
  color: var(--ai-color-white);
}
.ai-service--erection .ai-phase-tool__hud small { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
