@import url('https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&display=swap');

.intro-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: url('drunk-driving-naka-c1.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
}

.content-section {
  --scroll-length: 1.5;
  height: calc(var(--scroll-length) * 100vh);
  width: 100%;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
}

.content-section .content .subheading,
.content-section .content .paragraph {
  opacity: 1;
  opacity: calc(1 + var(--viewport-y));
}

.figure {
  width: 100%;
  height: 100vh;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.figure>img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center center;
  object-position: center center;
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 35em;
  display: grid;
  grid-template-rows: 1fr 1fr;
  color: white;
  padding: 2em;
  font-size: 2.5vmin;
}

.content * {
  text-shadow: 0 0 4vmin rgba(0, 0, 0, 0.25);
}

.content>.header {
  grid-row: 1/2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.content>.paragraph {
  grid-row: 2/3;
  line-height: 1.5;
}

.heading {
  font-size: 2.75em;
  margin: 0;
}

.subheading {
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

/* ---------------------------------- */
.figure {
  --scale: calc(.8 + (.2 * var(--scroll-length) * var(--visible-y)));
  position: sticky;
  top: 0;
  left: 0;
  margin: 0;
  display: block;
  overflow: hidden;
  will-change: transform;
  transform: scale(var(--scale));
}

.figure:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: black;
  opacity: calc(var(--visible-y));
}

.figure>img {
  display: block;
  will-change: transform;
  transform: scale(calc(1 / var(--scale)));
}

/* ---------------------------------- */
.char {
  display: inline-block;
  opacity: calc(1 + ((var(--viewport-y) * 1.5) - var(--char-percent)));
}

*,
*:before,
*:after {
  position: relative;
  box-sizing: border-box;
}

.heading,
.intro-heading {
  font-weight: 700;
}

body,
html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #000000;
}

.content-section {
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.015em;
  font-family: "SF Pro Display", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

.t {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: url('drunk-driving-naka-c1.jpg');
  background-repeat: no-repeat;
  background-size: cover;
}

.tparagraph {
  padding: 30px 90px;
  line-height: 1.4;
  font-weight: 300;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 18px;
  color: #fff;
  text-align: center;
  background: rgb(0, 0, 0, .5);
  margin: 0px;
  z-index: 1;
}

.theading {
  font-size: 72px;
  font-family: 'PT Sans Caption';
  color: #fff;
  background: #0a2853;
  padding: 5px 10px;
  margin: 0px;
  transform: translateY(15px);
  z-index: 10;
  text-align: center;
}

.callcta {
  position: fixed;
  background: #0a2853;
  color: #fff;
  font-family: "PT Sans Caption";
  font-size: 28px;
  padding: 15px;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 999;
  -webkit-animation: heartbeat 1.5s ease-in-out infinite both;
  animation: heartbeat 1.5s ease-in-out infinite both;
}

@-webkit-keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  10% {
    -webkit-transform: scale(0.91);
    transform: scale(0.91);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  17% {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  33% {
    -webkit-transform: scale(0.87);
    transform: scale(0.87);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  45% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

@keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  10% {
    -webkit-transform: scale(0.91);
    transform: scale(0.91);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  17% {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  33% {
    -webkit-transform: scale(0.87);
    transform: scale(0.87);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  45% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

.logo {
  position: fixed;
  z-index: 999;
}

@media screen and (min-width: 1000px) {
  .logo {
    top: 15px;
    left: 15px;
    height: 100px;
    width:auto;
  }
  .callcta {
    top: 15px;
  right: 15px;
  }
}

@media screen and (max-width: 999px) {
  .theading {
    font-size: 28px;
  }

  .tparagraph {
    font-size: 16px;
  }

  .logo {
    top: 15px;
    width: 100px;
    height: auto;
  }
  .callcta {
  top: 15px;
  right: 15px;
  font-size: 24px;
  }
}