.repair-cover {
  --repair-duration: 16.8s;
  --drone-width: clamp(166px, 31vw, 402px);
  --spray-width: clamp(52px, 11vw, 156px);
  --spray-height: clamp(75px, 12vw, 167px);
  background: radial-gradient(ellipse at 73% 37%, #254353 0%, #102733 45%, #071923 78%);
}

.repair-cover.repair-pending * {
  animation: none !important;
}

.repair-cover.repair-pending :is(.repair-clean, .repair-finish) {
  clip-path: inset(0 100% 0 0);
}

.repair-cover .cover-content {
  padding: clamp(20px, 4vh, 45px) clamp(22px, 4.1vw, 66px);
}

.repair-cover .institution-row {
  margin-bottom: clamp(9px, 1.8vh, 18px);
}

.repair-cover .institution-row img {
  width: clamp(36px, 4.5vw, 54px);
}

.repair-cover .eyebrow {
  margin-bottom: 0;
}

.cover-treatment {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-top: clamp(69px, max(14vh, calc(var(--drone-width) * .405)), 165px);
}

.repair-cover .repair-title {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-bottom: .17em;
  color: #b4bfbd;
  font-family: inherit;
  font-size: clamp(2rem, 5.15vw, 5.25rem);
  font-weight: 900;
  line-height: 1.015;
  letter-spacing: -.045em;
  background-color: #aab0ae;
  background-image:
    linear-gradient(180deg, #dbd4bc14, #8d897027),
    url('capa-texturas-concreto.jpg');
  background-size: 100% 100%, auto 330%;
  background-position: center, left 2%;
  background-repeat: no-repeat, repeat-x;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .6px rgba(224, 229, 225, .38);
}

.repair-cover .repair-title em {
  color: inherit;
  font-style: normal;
}

.repair-cover :is(.repair-clean, .repair-finish, .repair-defects) {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.repair-cover .repair-clean {
  background-image:
    linear-gradient(180deg, #d2e3e62f, #b9d9e13d),
    url('capa-texturas-concreto.jpg');
  background-position: center, left 50%;
  -webkit-text-stroke-color: #c9e0e686;
}

.repair-cover .repair-finish {
  background-image:
    linear-gradient(180deg, #f8faf02b, #dce5e51a),
    url('capa-texturas-concreto.jpg');
  background-position: center, left 98%;
  -webkit-text-stroke-color: #eef4f0b8;
}

.repair-definitions {
  position: absolute;
  pointer-events: none;
}

.repair-defects {
  z-index: 1;
}

.repair-defects > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.repair-steel-layer {
  clip-path: inset(0 100% 0 0);
}

.repair-flight {
  position: absolute;
  z-index: 2;
  bottom: calc(100% - 10px);
  left: 100%;
  width: var(--drone-width);
  aspect-ratio: 1881 / 836;
  transform: translateX(-100%);
  pointer-events: none;
}

.repair-flight > img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .65));
}

.repair-spray {
  position: absolute;
  top: 79.3%;
  left: 80.3%;
  width: var(--spray-width);
  height: var(--spray-height);
  opacity: 0;
  overflow: visible;
  transform-origin: top left;
}

.spray-water {
  filter: drop-shadow(0 0 3px rgba(118, 219, 249, .62));
}

.spray-mortar {
  filter: drop-shadow(0 2px 4px rgba(234, 191, 126, .48));
}

.repair-cover .cover-title-end {
  display: block;
  margin: clamp(8px, 1.8vh, 18px) 0 4px;
  color: #e1efee;
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  line-height: 1.13;
}

.repair-cover .deckline {
  max-width: none;
  margin-bottom: clamp(10px, 2vh, 23px);
}

.repair-cover .authors {
  margin-top: auto;
}

.repair-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 10px;
  font-size: clamp(.65rem, 1.3vw, .8rem);
  font-weight: 800;
}

.repair-stages > span {
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 99px;
  background: rgba(5, 20, 29, .75);
}

.repair-stage-water {
  color: #9bd3ea;
}

.repair-stage-mortar {
  color: #ebc58b;
}

.repair-cover.active:not(.motion-paused) .repair-flight {
  animation: repair-double-pass var(--repair-duration) linear both;
}

.repair-cover.active:not(.motion-paused) .spray-water {
  animation: repair-water-active var(--repair-duration) linear both;
}

.repair-cover.active:not(.motion-paused) .spray-mortar {
  animation: repair-mortar-active var(--repair-duration) linear both;
}

.repair-cover.active:not(.motion-paused) .repair-clean {
  animation: repair-clean-sweep var(--repair-duration) linear both;
}

.repair-cover.active:not(.motion-paused) .repair-finish {
  animation: repair-finish-sweep var(--repair-duration) linear both;
}

.repair-cover.active:not(.motion-paused) .repair-defects {
  animation: repair-defects-cover var(--repair-duration) linear both;
}

.repair-cover.active:not(.motion-paused) .repair-rust-layer {
  animation: repair-rust-removal var(--repair-duration) linear both;
}

.repair-cover.active:not(.motion-paused) .repair-steel-layer {
  animation: repair-clean-sweep var(--repair-duration) linear both;
}

.repair-cover.active:not(.motion-paused) .repair-stages .repair-stage-water {
  animation: repair-water-stage var(--repair-duration) linear both;
}

.repair-cover.active:not(.motion-paused) .repair-stages .repair-stage-mortar {
  animation: repair-mortar-stage var(--repair-duration) linear both;
}

.repair-cover.active:not(.motion-paused) .repair-mist {
  animation: repair-dispersal .23s ease-out 46 alternate both;
  transform-origin: 55% 84%;
}

@keyframes repair-dispersal {
  from { opacity: .28; transform: scale(.8); }
  to { opacity: 1; transform: scale(1.12); }
}

@keyframes repair-double-pass {
  0%, 9% { left: 0%; transform: translate(-100%, 0); opacity: 1; }
  36% { left: 100%; transform: translate(-100%, -3px); opacity: 1; }
  40% { left: 108%; transform: translate(-100%, -25px); opacity: 0; }
  48% { left: -3%; transform: translate(-100%, -25px); opacity: 0; }
  51% { left: 0%; transform: translate(-100%, 0); opacity: 1; }
  96% { left: 100%; transform: translate(-100%, -1px); }
  100% { left: 100%; transform: translate(-100%, 0); opacity: 1; }
}

@keyframes repair-water-active {
  0%, 8%, 38%, 100% { opacity: 0; transform: scale(.7); }
  11%, 35% { opacity: 1; transform: scale(1); }
}

@keyframes repair-mortar-active {
  0%, 50%, 98%, 100% { opacity: 0; transform: scale(.7); }
  53%, 95% { opacity: 1; transform: scale(1); }
}

@keyframes repair-clean-sweep {
  0%, 9% { clip-path: inset(0 100% 0 0); }
  36%, 100% { clip-path: inset(0); }
}

@keyframes repair-finish-sweep {
  0%, 51% { clip-path: inset(0 100% 0 0); }
  96%, 100% { clip-path: inset(0); }
}

@keyframes repair-rust-removal {
  0%, 9% { clip-path: inset(0); }
  36%, 100% { clip-path: inset(0 0 0 100%); }
}

@keyframes repair-defects-cover {
  0%, 51% { clip-path: inset(0); }
  96%, 100% { clip-path: inset(0 0 0 100%); }
}

@keyframes repair-water-stage {
  0%, 8%, 41%, 100% { opacity: .65; box-shadow: none; }
  12%, 35% { opacity: 1; box-shadow: 0 0 11px rgba(118, 219, 249, .38); }
}

@keyframes repair-mortar-stage {
  0%, 50% { opacity: .65; box-shadow: none; }
  54%, 96% { opacity: 1; box-shadow: 0 0 11px rgba(234, 191, 126, .38); }
  100% { opacity: 1; box-shadow: none; }
}

@media (max-height: 744px) and (min-width: 701px) {
  .repair-cover {
    --drone-width: clamp(166px, 31vw, 330px);
  }

  .cover-treatment {
    margin-top: clamp(62px, max(13vh, calc(var(--drone-width) * .39)), 122px);
  }

  .repair-cover .repair-title {
    font-size: clamp(2rem, 5.05vw, 4.3rem);
  }
}

@media (max-width: 700px) {
  .repair-cover {
    min-height: calc(100dvh - 124px);
    height: auto;
  }

  .repair-cover .repair-title {
    font-size: clamp(2rem, 8.4vw, 3.5rem);
  }

  .repair-cover .deckline {
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .repair-cover :is(.repair-clean, .repair-spray, .repair-defects) {
    display: none;
  }

  .repair-cover .repair-finish {
    clip-path: inset(0);
  }
}

@media (forced-colors: active) {
  .repair-cover .repair-title {
    background: none;
    -webkit-text-fill-color: CanvasText;
    -webkit-text-stroke: 0;
  }

  .repair-cover :is(.repair-clean, .repair-finish, .repair-defects) {
    display: none;
  }
}
