/* P12, two doors. The Absolute Air concept's Homes | Business: two photo
   halves, each with one huge word, slide apart left and right on a desktop
   and up and down on a phone, and the content behind settles in. The doors
   exist only under is-closed (the script ran, motion allowed); everywhere
   else the content is simply the section. Audited against the design tells:
   no capitals, no icons, no dots; the cards are plain frosted panels. */
.vl-m.vl-p12 {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: var(--vl-fg);
  background: var(--vl-bg);
}
.vl-p12--hero {
  min-height: 100vh;
  min-height: 100svh;
}
.vl-p12__center {
  position: relative;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 72px 0;
}
.vl-p12__cbg {
  position: absolute;
  inset: 0;
}
.vl-p12__cbg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--vl-bg) 92%, transparent), color-mix(in srgb, var(--vl-bg) 60%, transparent));
}
.vl-m .vl-p12__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.vl-m .vl-p12__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
}
.vl-m .vl-p12__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.vl-m .vl-p12__card {
  padding: 24px 22px;
  border: 1px solid rgba(var(--vl-fg-rgb), 0.2);
  border-radius: 24px;
  background: rgba(var(--vl-fg-rgb), 0.08);
}
.vl-m .vl-p12__card-title,
.vl-m .vl-p12__title {
  margin: 0;
  color: var(--vl-fg);
  font-family: var(--vl-f-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: var(--vl-display-weight, 800);
  line-height: 1.05;
}
.vl-m .vl-p12__title {
  max-width: 14ch;
  font-size: clamp(36px, 5.2vw, 64px);
}
.vl-m .vl-p12__card-text,
.vl-m .vl-p12__lede {
  margin: 10px 0 18px;
  color: rgba(var(--vl-fg-rgb), 0.88);
  font-size: 16px;
  line-height: 1.65;
}
.vl-m .vl-p12__lede {
  max-width: 34em;
  font-size: 18px;
}

/* The doors: only once closed by the script. */
.vl-p12__doors,
.vl-m .vl-p12__open {
  display: none;
}
.vl-p12.is-closed .vl-p12__doors {
  display: block;
}
.vl-m.vl-p12.is-closed .vl-p12__open {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
/* Unreleased: once the doors open the script sets hidden, and this has to
   outrank the rule above, which is-closed keeps matching. In 0.9.0 the
   [hidden] rule was (0,3,0) against (0,4,0), so the transparent button stayed
   over both cards at every width (Absolute Air draft 21). The hover and focus
   colours are the button's own: Hello's reset paints a button #c36. */
.vl-m.vl-p12.is-closed .vl-p12__open[hidden] {
  display: none;
}
.vl-m.vl-p12.is-closed .vl-p12__open:hover,
.vl-m.vl-p12.is-closed .vl-p12__open:focus {
  background: transparent;
  color: inherit;
}
.vl-m .vl-p12__open:focus-visible {
  outline: 3px solid var(--vl-fg);
  outline-offset: -8px;
}
.vl-p12__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.vl-m .vl-p12__open[hidden] {
  display: none;
}
.vl-p12__half {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 3;
  height: 50%;
  overflow: hidden;
  background: var(--vl-bg);
}
.vl-p12__half::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--vl-bg) 50%, transparent);
}
.vl-p12__half--left {
  top: 0;
  border-bottom: 1px solid rgba(var(--vl-fg-rgb), 0.35);
}
.vl-p12__half--right {
  bottom: 0;
}
.vl-p12__lbl {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.vl-p12__word {
  font-family: var(--vl-f-display);
  font-size: clamp(56px, 16vw, 150px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.vl-p12__small {
  margin-top: 12px;
  color: rgba(var(--vl-fg-rgb), 0.9);
  font-size: 17px;
  font-weight: 600;
}
.vl-p12.is-open .vl-p12__half--left {
  transform: translateY(-101%);
}
.vl-p12.is-open .vl-p12__half--right {
  transform: translateY(101%);
}
/* Unreleased: open doors are out of the section, clipped by its overflow,
   but still laid out over the sections beside it, and their words were read
   as overlapping P1 above (Absolute Air, 390 and 768). Once the slide is
   over they are hidden; the transition below keeps them seen while they move. */
.vl-p12.is-open .vl-p12__half {
  visibility: hidden;
}

@media (min-width: 901px) {
  .vl-m.vl-p12 {
    min-height: min(100vh, 900px);
    min-height: min(100svh, 900px);
  }
  .vl-m .vl-p12__cards {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .vl-m .vl-p12__card {
    padding: 34px;
  }
  .vl-m .vl-p12__card-text {
    margin: 14px 0 24px;
    font-size: 17px;
  }
  .vl-p12__half {
    top: 0;
    bottom: 0;
    width: 50%;
    height: auto;
    border-bottom: 0;
  }
  .vl-p12__half--left {
    left: 0;
    right: auto;
    border-right: 1px solid rgba(var(--vl-fg-rgb), 0.35);
  }
  .vl-p12__half--right {
    right: 0;
    left: auto;
  }
  .vl-p12__word {
    font-size: clamp(56px, 10vw, 150px);
  }
  .vl-p12.is-open .vl-p12__half--left {
    transform: translateX(-101%);
  }
  .vl-p12.is-open .vl-p12__half--right {
    transform: translateX(101%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .vl-p12.is-motion .vl-p12__half {
    transition: transform 1.25s cubic-bezier(0.75, 0, 0.2, 1), visibility 0s linear 1.25s;
  }
  .vl-m.vl-p12.is-motion.is-closed .vl-p12__cbg .vl-p12__img {
    transform: scale(1.12);
    transition: transform 2.4s cubic-bezier(0.2, 0.7, 0.1, 1);
  }
  .vl-m.vl-p12.is-motion.is-open .vl-p12__cbg .vl-p12__img {
    transform: none;
  }
  .vl-p12.is-motion.is-closed .vl-p12__copy {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s 0.7s, transform 0.7s 0.7s;
  }
  .vl-p12.is-motion.is-open .vl-p12__copy {
    opacity: 1;
    transform: none;
  }
}
