@import url("https://fonts.googleapis.com/css?family=Lato:300,400|Montserrat:300,400,800&display=swap");

.swipebox {
  width: auto;
}
.swipebox .title {
  width: 55%;
  text-align: inline;
  position: relative;
  display: flex;
  align-items: center;
  height: 26px;
}
.swipebox .title .block {
  width: 0%;
  height: inherit;
  background: #fb086f;
  position: absolute;
  animation: mainBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
  display: flex;
}
.swipebox .title h1 {
  font-family: "Lato";
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  -webkit-animation: mainFadeIn 2s forwards;
  -o-animation: mainFadeIn 2s forwards;
  animation: mainFadeIn 2s forwards;
  animation-delay: 1.6s;
  opacity: 0;
  display: flex;
  align-items: baseline;
  position: relative;
  margin-bottom: auto;
}
/* .swipecontainer .swipebox .title h1 span {
  width: 0px;
  height: 0px;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background: #ffb510;
  -webkit-animation: load 0.6s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
  animation: popIn 0.8s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
  animation-delay: 2s;
  margin-left: 5px;
  margin-top: -10px;
  position: absolute;
  bottom: 13px;
  right: -12px;
} */
.swipebox .role {
  width: 65%;
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  margin-top: 10px;
}
.swipebox .role .block {
  width: 0%;
  height: inherit;
  background: #49fc04;
  position: absolute;
  animation: secBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
  animation-delay: 2s;
  display: flex;
}
.swipebox .role p {
  animation: secFadeIn 2s forwards;
  animation-delay: 3.2s;
  opacity: 0;
  font-family: "Lato";
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-top: inherit;
}

@keyframes mainBlock {
  0% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}
@keyframes secBlock {
  0% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}
@keyframes mainFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes popIn {
  0% {
    width: 0px;
    height: 0px;
    background: #e9d856;
    border: 0px solid #ddd;
    opacity: 0;
  }
  50% {
    width: 10px;
    height: 10px;
    background: #e9d856;
    opacity: 1;
    bottom: 45px;
  }
  65% {
    width: 7px;
    height: 7px;
    bottom: 0px;
    width: 15px;
  }
  80% {
    width: 10px;
    height: 10px;
    bottom: 20px;
  }
  100% {
    width: 7px;
    height: 7px;
    background: #e9d856;
    border: 0px solid #222;
    bottom: 13px;
  }
}
@keyframes secFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.5;
  }
}

/* Keep animated page titles and category tags separated on smaller screens. */
@media (max-width: 767px) {
  .swipebox {
    width: 100%;
    padding: .55rem 0 .9rem;
  }

  .swipebox .title,
  .swipebox .role {
    width: 100%;
    height: auto;
    min-height: 2.15rem;
  }

  .swipebox .title {
    align-items: flex-start;
  }

  .swipebox .title h1 {
    display: block;
    max-width: 100%;
    margin: 0;
    font-size: clamp(1.35rem, 6.4vw, 2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .swipebox .role {
    align-items: flex-start;
    min-height: 2.9rem;
    margin-top: .55rem;
  }

  .swipebox .role p {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: .3rem 0;
    font-size: .68rem;
    line-height: 1.5;
    letter-spacing: .16rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  .swipebox .role p {
    font-size: .63rem;
    letter-spacing: .12rem;
  }
}

@media (max-width: 767px) {
  .swipebox .title .block,
  .swipebox .role .block {
    top: 0;
    height: 100%;
  }
}

/* Optional DNA header animation. The classic bar style remains available from
   Backend > Page Header Tags, so this effect can be reverted without a code change. */
.swipe-style-magic .swipebox .title,
.swipe-style-magic .swipebox .role {
  overflow: visible;
  isolation: isolate;
}

.swipe-style-magic .swipebox .title .block,
.swipe-style-magic .swipebox .role .block {
  left: 0;
  width: 0;
  height: 3rem;
  background: transparent;
  animation: none;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.swipe-style-magic .swipebox .role .block {
  height: 3.35rem;
}

.swipe-style-magic .swipebox .title h1,
.swipe-style-magic .swipebox .role p {
  position: relative;
  z-index: 2;
}

.magic-dna-sweep {
  --dna-start: 0s;
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 3.5rem;
  transform: translateY(-50%);
  overflow: visible;
  opacity: 0;
  filter: drop-shadow(0 0 .2rem rgba(251, 8, 111, .28)) drop-shadow(0 0 .2rem rgba(73, 252, 4, .2));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 92%, transparent 100%);
  animation: dnaContainer 1.18s ease-out var(--dna-start) forwards;
}

.magic-dna-rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: dnaAxialSpin 1.10s linear var(--dna-start) forwards;
}

.magic-dna-strand,
.magic-dna-haze {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: dnaDraw .74s cubic-bezier(.22,.72,.2,1) var(--dna-start) forwards;
}

.magic-dna-strand {
  stroke-width: 2.15;
}

.magic-dna-haze {
  stroke-width: 4.8;
  opacity: .11;
  filter: blur(1.2px);
}

.magic-dna-strand.pink { stroke: #fb086f; }
.magic-dna-strand.green { stroke: #49fc04; }
.magic-dna-haze.pink { stroke: rgba(251,8,111,.62); }
.magic-dna-haze.green { stroke: rgba(73,252,4,.5); }

.magic-dna-rung-line {
  stroke: rgba(235, 244, 244, .5);
  stroke-width: 1.05;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: dnaRungAppear .16s ease-out calc(var(--dna-start) + var(--rung-delay)) forwards;
}


/* The copy is uncovered from left to right while the helix draws. The DNA
   keeps moving briefly after the text is readable, but never blocks the page. */
.swipe-style-magic .swipebox .title h1 {
  opacity: 1;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  animation: magicTitleSwipe .48s cubic-bezier(.22,.72,.2,1) .10s forwards !important;
}

.swipe-style-magic .swipebox .role p {
  opacity: .5;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  animation: magicRoleSwipe .52s cubic-bezier(.22,.72,.2,1) .47s forwards !important;
}

@keyframes magicTitleSwipe {
  from { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
  to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
}

@keyframes magicRoleSwipe {
  from { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
  to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
}

@keyframes dnaContainer {
  0% { opacity: 0; transform: translate(-.45rem, -50%); }
  9% { opacity: .96; }
  78% { opacity: .9; }
  100% { opacity: 0; transform: translate(.35rem, -50%); }
}

/* Projecting the helix through positive/negative Y scale makes it look like it
   rotates around its own horizontal axis instead of sliding as a flat sine wave. */
@keyframes dnaAxialSpin {
  0% { transform: scaleY(1); }
  12.5% { transform: scaleY(.16); }
  25% { transform: scaleY(-1); }
  37.5% { transform: scaleY(-.16); }
  50% { transform: scaleY(1); }
  62.5% { transform: scaleY(.16); }
  75% { transform: scaleY(-1); }
  87.5% { transform: scaleY(-.16); }
  100% { transform: scaleY(1); }
}

@keyframes dnaDraw {
  0% { stroke-dashoffset: 100; opacity: .15; }
  12% { opacity: .95; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes dnaRungAppear {
  from { opacity: 0; }
  to { opacity: .68; }
}

@media (max-width: 767px) {
  .swipe-style-magic .swipebox .title .block,
  .swipe-style-magic .swipebox .role .block {
    top: 0;
    height: 3rem;
  }

  .swipe-style-magic .swipebox .role .block {
    height: 3.35rem;
  }

  .magic-dna-sweep {
    height: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-style-magic .magic-dna-sweep,
  .swipe-style-magic .swipebox .title .block,
  .swipe-style-magic .swipebox .role .block {
    display: none !important;
  }

  .swipe-style-magic .swipebox .title h1,
  .swipe-style-magic .swipebox .role p {
    animation: none !important;
    opacity: 1;
    -webkit-clip-path: none;
    clip-path: none;
  }
}

/* REVISED_17: selectable lightweight header/tag entrances. */
.swipe-style-none .swipebox .title .block,
.swipe-style-none .swipebox .role .block,
.swipe-style-fade .swipebox .title .block,
.swipe-style-fade .swipebox .role .block,
.swipe-style-swipe .swipebox .title .block,
.swipe-style-swipe .swipebox .role .block,
.swipe-style-bounce .swipebox .title .block,
.swipe-style-bounce .swipebox .role .block,
.swipe-style-smoke .swipebox .title .block,
.swipe-style-smoke .swipebox .role .block {
  display: none !important;
  animation: none !important;
}

.swipe-style-none .swipebox .title h1,
.swipe-style-none .swipebox .role p {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
  filter: none !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
}
.swipe-style-none .swipebox .role p { opacity: .5 !important; }

.swipe-style-fade .swipebox .title h1 {
  opacity: 0;
  animation: skinlabSimpleFade .45s ease-out .04s forwards !important;
}
.swipe-style-fade .swipebox .role p {
  opacity: 0;
  animation: skinlabSimpleFadeTag .45s ease-out .18s forwards !important;
}

.swipe-style-swipe .swipebox .title h1 {
  opacity: 1;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  animation: skinlabSimpleSwipe .56s cubic-bezier(.22,.72,.2,1) .03s forwards !important;
}
.swipe-style-swipe .swipebox .role p {
  opacity: .5;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  animation: skinlabSimpleSwipe .56s cubic-bezier(.22,.72,.2,1) .20s forwards !important;
}

.swipe-style-bounce .swipebox .title h1 {
  opacity: 0;
  transform: translateY(-.75rem) scale(.985);
  animation: skinlabSimpleBounce .58s cubic-bezier(.2,.85,.25,1.22) .03s forwards !important;
}
.swipe-style-bounce .swipebox .role p {
  opacity: 0;
  transform: translateY(-.45rem);
  animation: skinlabSimpleBounceTag .52s cubic-bezier(.2,.85,.25,1.18) .18s forwards !important;
}

.swipe-style-smoke .swipebox .title h1,
.swipe-style-smoke .swipebox .role p {
  transform-origin: left center;
}
.swipe-style-smoke .swipebox .title h1 {
  opacity: 0;
  filter: blur(8px);
  transform: translateX(-1rem) scaleX(.97);
  text-shadow: -.7rem 0 1rem rgba(251,8,111,.28), .25rem 0 1rem rgba(73,252,4,.18);
  animation: skinlabSmokeReveal .82s cubic-bezier(.2,.72,.2,1) .02s forwards !important;
}
.swipe-style-smoke .swipebox .role p {
  opacity: 0;
  filter: blur(7px);
  transform: translateX(-.75rem) scaleX(.98);
  text-shadow: -.5rem 0 .8rem rgba(73,252,4,.2), .2rem 0 .8rem rgba(251,8,111,.2);
  animation: skinlabSmokeRevealTag .78s cubic-bezier(.2,.72,.2,1) .18s forwards !important;
}

@keyframes skinlabSimpleFade { to { opacity: 1; } }
@keyframes skinlabSimpleFadeTag { to { opacity: .5; } }
@keyframes skinlabSimpleSwipe { to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); } }
@keyframes skinlabSimpleBounce {
  0% { opacity: 0; transform: translateY(-.75rem) scale(.985); }
  65% { opacity: 1; transform: translateY(.13rem) scale(1.006); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes skinlabSimpleBounceTag {
  0% { opacity: 0; transform: translateY(-.45rem); }
  68% { opacity: .5; transform: translateY(.08rem); }
  100% { opacity: .5; transform: translateY(0); }
}
@keyframes skinlabSmokeReveal {
  0% { opacity: 0; filter: blur(8px); transform: translateX(-1rem) scaleX(.97); }
  38% { opacity: .72; filter: blur(4px); }
  100% { opacity: 1; filter: blur(0); transform: translateX(0) scaleX(1); text-shadow: none; }
}
@keyframes skinlabSmokeRevealTag {
  0% { opacity: 0; filter: blur(7px); transform: translateX(-.75rem) scaleX(.98); }
  42% { opacity: .36; filter: blur(3.5px); }
  100% { opacity: .5; filter: blur(0); transform: translateX(0) scaleX(1); text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-style-fade .swipebox .title h1,
  .swipe-style-fade .swipebox .role p,
  .swipe-style-swipe .swipebox .title h1,
  .swipe-style-swipe .swipebox .role p,
  .swipe-style-bounce .swipebox .title h1,
  .swipe-style-bounce .swipebox .role p,
  .swipe-style-smoke .swipebox .title h1,
  .swipe-style-smoke .swipebox .role p {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }
  .swipe-style-fade .swipebox .role p,
  .swipe-style-swipe .swipebox .role p,
  .swipe-style-bounce .swipebox .role p,
  .swipe-style-smoke .swipebox .role p { opacity: .5 !important; }
}
