.video-showcase {
  border-top: 1px solid var(--line);
  padding-top: 120px;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 42px;
}

.phone-story {
  min-width: 0;
}

.device {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 9 / 19.5;
  margin: 0 auto 26px;
  padding: 5px;
  background: #070707;
  border: 1px solid #333;
  border-radius: 46px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}

.device-top {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  border-radius: 20px;
  background: #050505;
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  padding: 32px 22px 24px;
  display: flex;
  flex-direction: column;
  color: white;
  background: #232323;
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, .14), transparent 38%, rgba(0, 0, 0, .25));
  pointer-events: none;
}

.device-top { pointer-events: none; }
.device-screen.has-video {
  position: absolute;
  inset: 5px;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 40px;
  background: #070707;
  isolation: isolate;
}
.device-screen.has-video::after { display: none; }
.device-screen video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  background: #070707;
}

.phone-story-landscape {
  grid-column: span 2;
  align-self: center;
}

.device.device-landscape {
  width: min(100%, 660px);
  aspect-ratio: 19.5 / 9;
}

.device-landscape .device-top {
  top: 50%;
  left: 16px;
  width: 22px;
  height: 78px;
  transform: translateY(-50%);
}

.video-count,
.screen-title,
.screen-play,
.device-screen small {
  position: relative;
  z-index: 1;
}

.video-count {
  font: .72rem 'DM Sans';
  letter-spacing: .14em;
}

.screen-title {
  margin: auto 0 0;
  font: 700 clamp(1.7rem, 3vw, 2.4rem) / 1.02 'Manrope';
  letter-spacing: -.05em;
}

.screen-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: #111;
  margin: 24px 0;
  padding-left: 3px;
}

.device-screen small {
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .72;
}

.tone-orange { background: linear-gradient(155deg, #ff6b37, #72210e); }
.tone-blue { background: linear-gradient(155deg, #338ec5, #132e47); }
.tone-red { background: linear-gradient(155deg, #e43a42, #641016); }
.tone-green { background: linear-gradient(155deg, #689967, #16311b); }
.tone-gold { background: linear-gradient(155deg, #d59b37, #64400d); }
.tone-purple { background: linear-gradient(155deg, #7665a8, #281f48); }
.tone-dark { background: linear-gradient(155deg, #484848, #090909); }
.tone-sky { background: linear-gradient(155deg, #60a8c6, #173c52); }
.tone-white { background: linear-gradient(155deg, #e7e2d8, #777167); color: #111; }
.tone-white .screen-play { background: #111; color: white; }
.tone-forest { background: linear-gradient(155deg, #41683e, #102511); }
.tone-sand { background: linear-gradient(155deg, #c39968, #55381f); }
.tone-sunset { background: linear-gradient(155deg, #e57242, #6f2432); }
.tone-chrome { background: linear-gradient(155deg, #77808a, #171a1e); }
.tone-money { background: linear-gradient(155deg, #50826f, #122c22); }

.phone-copy > span {
  display: block;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .11em;
  margin-bottom: 10px;
}

.phone-copy h3 {
  font: 600 1.45rem / 1.12 'Manrope';
  letter-spacing: -.035em;
  margin: 0 0 12px;
}

.phone-copy p {
  color: #57544f;
  line-height: 1.55;
  margin: 0;
  max-width: 390px;
}

@media (max-width: 850px) {
  .phone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 65px 24px;
  }
}

@media (max-width: 520px) {
  .phone-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    margin-left: -22px;
    margin-right: -22px;
    padding: 0 22px 26px;
  }

  .phone-story {
    flex: 0 0 82vw;
    scroll-snap-align: center;
  }

  .device {
    width: 76vw;
  }
}

.contact-links {
  grid-template-columns: repeat(3, 1fr);
}

.contact-links a {
  padding-left: 30px;
  padding-right: 30px;
  border-right: 1px solid #444;
}

.contact-links a:first-child {
  padding-left: 0;
}

.contact-links a:last-child {
  padding-right: 0;
  border-right: 0;
}

@media (max-width: 850px) {
  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-links a,
  .contact-links a:first-child,
  .contact-links a:last-child {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid #444;
  }

  .contact-links a:last-child {
    border-bottom: 0;
  }
}
