* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #FFF;
  font-weight: 300;
  font-family: proxima-nova, sans-serif;
}

#wrapper {
  display: block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 300px;
  height: 250px;
  background: #fafafa;
  color: #000;
}

img {
  display: block;
  margin: 0 auto;
}

.logoAnim {
  position: relative;
  top: 50%;
  font-size: 0;
  display: table;
  margin: 115px auto 0;
  top: 0;
  transition: top 0.5s ease-out, opacity 0.5s ease-out;
}

.logoAnim span {
  position: relative;
  font-size: 22px;
  display: inline-block;
  vertical-align: top;
  line-height: 1;
  top: -2px;
  letter-spacing: -1em;
  margin: 0;
  opacity: 0;
  transition: letter-spacing 1s ease-out, margin 1s ease-out, opacity 1s 0.5s ease-out;
}

.logoAnim .orLockup {
  font-size: 12px;
  padding: 0;
  line-height: 0;
  overflow: hidden;
  top: 7px;
  width: 0;
  letter-spacing: 0;
  border-top: 1px solid #0272b1;
  border-bottom: 1px solid #0272b1;
  transition: opacity 0.5s 0.5s ease-out, width 0.4s 0.25s linear, padding 0.2s 0.65s linear, line-height 0.2s 0.65s linear, top 0.2s 0.65s linear;
}

.logoAnim img {
  display: inline-block;
  vertical-align: top;
  height: 25px;
  transition: height 0.3s ease-in-out;
}

.logoAnim img.tallLetter {
  height: 32px;
  margin-left: -3px;
}

.logoAnim .insuranceGroup {
  position: relative;
  top: 0;
  opacity: 1;
  width: 55px;
  margin-left: 2px;
  transition: all 0.3s ease-out;
}

.logoAnim .insuranceGroup img {
  width: 55px;
  height: auto !important;
  transition: all 0.3s ease-out;
}

.logoAnim.animated img {
  height: 1rem;
}

.logoAnim.animated img.tallLetter {
  height: 1.3rem;
}

.logoAnim.animated span {
  opacity: 1;
  letter-spacing: 0;
  margin-right: 8px;
  margin-left: 1px;
}

.logoAnim.animated span:nth-last-child(2) {
  margin-right: 0;
}

.logoAnim.animated .orLockup {
  padding: 2px 0;
  line-height: 1;
  width: 18px;
  margin-right: 8px;
  top: 0;
}

.logoAnim.animated .insuranceGroup {
  opacity: 0;
  margin: 0;
  width: 0;
}

.logoAnim.animated .insuranceGroup img {
  width: 35px;
}

.logoAnim.animated.out {
  opacity: 0;
}

.lockup {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  font-weight: 600;
  transition: top 0.5s ease-out;
}

.lockup h4, .lockup p {
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.1em;
  opacity: 0;
  position: relative;
  top: 0;
}

.lockup h4 {
  color: #0272b1;
  top: 10px;
  text-transform: uppercase;
  margin: 114px 0 12px;
  transition: opacity 0.3s 0.5s ease-out, margin 0.5s 1.5s ease-out;
}

.lockup p {
  margin: 0;
  color: #000;
  transition-delay: 1s;
  transition: all 0.3s 1.75s ease-out;
}

.lockup .cta, .lockup img {
  position: absolute;
  opacity: 0;
}

.lockup .cta {
  background: #0272b1;
  font-weight: 900;
  color: #FFF;
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 30px;
  bottom: 22px;
  right: -100%;
  border: 2px solid #0272b1;
  transition: opacity 0.5s 1.5s ease-out, right 0.5s 1.5s ease-out, background 0.2s ease-out, color 0.2s ease-out;
}

.lockup img {
  width: 91px;
  height: auto;
  bottom: 20px;
  left: -100%;
  transition: opacity 0.5s 1.5s ease-out, left 0.5s 1.5s ease-out;
}

.lockup.animated {
  top: 0;
}

.lockup.animated h4, .lockup.animated p {
  opacity: 1;
  top: 0;
}

.lockup.animated h4 {
  margin: 75px 0 12px;
}

.lockup.animated .cta, .lockup.animated img {
  opacity: 1;
}

.lockup.animated img {
  left: 20px;
}

.lockup.animated .cta {
  right: 22px;
}

#wrapper:hover .cta {
  background: #FFF;
  color: #0272b1;
}
