/* ==========================================================================
   CLOSING CALL
   A band of sand: a heading, the button, and the emblem very large at the
   side, which assembles once as it comes into view (the launch screen's
   movement, slower). The emblem is the only colour in it.
   ========================================================================== */

.closing-call {
  overflow: hidden;
  background-color: var(--paper-darkened);
  color: var(--ink);
}

.closing-call__wrapper {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 4.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: 4.5rem;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .closing-call__wrapper {
    grid-template-columns: minmax(0, 1fr) 140px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Tablet Landscape Up - Min 900px */
@media (min-width: 900px) {
  .closing-call__wrapper {
    grid-template-columns: minmax(0, 1fr) 200px;
    padding-top: 7rem;
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 7rem;
  }
}

.closing-call h2 {
  font-size: 48px;
  letter-spacing: -0.045em;
}

/* Tablet Landscape Up - Min 900px */
@media (min-width: 900px) {
  .closing-call h2 {
    font-size: 88px;
  }
}

.closing-call header p {
  margin-top: 0.75rem;
  font-size: 18px;
}

.closing-call footer {
  margin-top: 1.75rem;
}

/* EMBLEM */

.closing-call__emblem {
  justify-self: end;
  width: 104px;
  margin-top: -1rem;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .closing-call__emblem {
    width: 100%;
    margin-top: 0;
  }
}

.closing-call__emblem svg {
  width: 100%;
  height: auto;
}

/* Held apart until revealed, then the facets glide in around the star. The
   reveal's own fade and rise are switched off for this figure. */
@media (prefers-reduced-motion: no-preference) {
  .is-scripted .closing-call__emblem[data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .is-scripted .closing-call__emblem .esquire-logo__light {
    opacity: 0;
    transform: translate(-34px, 0);
    transition: transform 1100ms var(--ease-out) 160ms, opacity 600ms ease 160ms;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .is-scripted .closing-call__emblem .esquire-logo__teal {
    opacity: 0;
    transform: translate(26px, -30px);
    transition: transform 1100ms var(--ease-out) 240ms, opacity 600ms ease 240ms;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .is-scripted .closing-call__emblem .esquire-logo__red {
    opacity: 0;
    transform: translate(26px, 30px);
    transition: transform 1100ms var(--ease-out) 320ms, opacity 600ms ease 320ms;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .is-scripted .closing-call__emblem .esquire-logo__gold {
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
    transition: transform 1200ms var(--ease-out), opacity 500ms ease;
  }
}

.is-scripted .closing-call__emblem.is-revealed .esquire-logo__light,
.is-scripted .closing-call__emblem.is-revealed .esquire-logo__teal,
.is-scripted .closing-call__emblem.is-revealed .esquire-logo__red,
.is-scripted .closing-call__emblem.is-revealed .esquire-logo__gold {
  opacity: 1;
  transform: none;
}
