.action-doors {
  display: flex;
  flex-direction: column;
  background-color: var(--night);
  color: var(--offwhite);
}

/* Tablet Landscape Up - Min 900px */
@media (min-width: 900px) {
  .action-doors {
    flex-direction: row;
    min-height: 88vh;
  }
}

/* ============================================ */
/* DOOR */
/* ============================================ */

.action-doors-item {
  position: relative;
  overflow: hidden;
  transition: flex-grow 900ms cubic-bezier(0.76, 0, 0.24, 1);
}

/* Tablet Landscape Up - Min 900px */
@media (min-width: 900px) {
  .action-doors-item {
    flex-grow: 1;
    flex-basis: 0;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .action-doors-item:hover,
  .action-doors-item:focus-within {
    flex-grow: 1.35;
  }
}

.action-doors-item + .action-doors-item {
  background-color: var(--primary-color-darkened);
}

.action-doors-item__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 440px;
  color: inherit;
  text-decoration: none;
}

.action-doors-item__link:focus-visible {
  outline-offset: -8px;
}

/* ============================================ */
/* BACKGROUND PHOTOGRAPH */
/* ============================================ */

/* Always present but held back under the door's own colour; it comes forward a little on hover */
.action-doors-item__image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.action-doors-item__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgba(10, 26, 18, 0.96) 0%, rgba(10, 26, 18, 0.86) 45%, rgba(10, 26, 18, 0.7) 100%);
  transition: opacity 900ms ease;
}

.action-doors-item + .action-doors-item .action-doors-item__image::after {
  background-image: linear-gradient(to top, rgba(7, 51, 31, 0.97) 0%, rgba(7, 51, 31, 0.88) 45%, rgba(7, 51, 31, 0.76) 100%);
}

.action-doors-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5);
  transform: scale(1.06);
  transition: transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.action-doors-item:hover .action-doors-item__image::after,
.action-doors-item:focus-within .action-doors-item__image::after {
  opacity: 0.86;
}

.action-doors-item:hover .action-doors-item__image img {
  transform: scale(1);
}

.action-doors-item__content {
  position: relative;
  max-width: 600px;
  padding-top: 4rem;
  padding-bottom: 3rem;
  padding-left: 20px;
  padding-right: 20px;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .action-doors-item__content {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .action-doors-item__content {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 4rem;
  }
}

.action-doors-item__audience {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--secondary-color-lighter);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.action-doors-item__content h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .action-doors-item__content h2 {
    font-size: 52px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .action-doors-item__content h2 {
    font-size: 64px;
  }
}

.action-doors-item__description {
  max-width: 440px;
  margin-top: 0;
  margin-bottom: 2rem;
  color: rgba(244, 242, 236, 0.8);
  font-size: 17px;
  line-height: 1.55;
}

/* Drawn like a hollow button: a capsule whose arrow takes the khaki half, like the pill in the logo */
.action-doors-item__action {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(244, 242, 236, 0.5);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease;
}

.action-doors-item__action svg {
  box-sizing: content-box;
  flex-shrink: 0;
  align-self: stretch;
  width: 54px;
  height: auto;
  margin-left: 1.3rem;
  margin-right: -1.5rem;
  padding-right: 4px;
  background-color: var(--tertiary-color);
  color: var(--black);
}

.action-doors-item:hover .action-doors-item__action {
  border-color: var(--offwhite);
  background-color: var(--offwhite);
  color: var(--black);
}

@media (prefers-reduced-motion: no-preference) {
  .action-doors-item:hover .action-doors-item__action svg g {
    animation: arrow-convey 760ms cubic-bezier(0.7, 0, 0.2, 1);
  }
}
