/* Clear destinations, within the existing collection and systems choreography. */
.roof-scene .scene-bottom {
  right: auto;
  width: calc(100% - 48px);
  max-width: min(560px, calc(50% - 96px));
  flex-direction: row;
  align-items: center;
  gap: 22px;
}

.roof-scene .scene-details {
  display: inline-flex;
  flex: 0 0 auto;
  order: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 400;
  white-space: nowrap;
  text-align: left;
  transition: background-color .2s, border-color .2s;
}

/* Replace the old first-span circle without inheriting its hover treatment. */
.roof-scene .scene-details > span.scene-cta-label,
.roof-scene .scene-details > span.scene-cta-arrow {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.roof-scene .scene-details > span.scene-cta-arrow {
  font-size: 19px;
  line-height: 1;
  transition: transform .2s var(--ease);
}

.roof-scene .scene-description {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 350px;
  padding-bottom: 0;
  font-size: 14px;
  line-height: 1.4;
}

#systems .architecture-image > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#systems .architecture-image > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

#systems .architecture-image::after {
  background: linear-gradient(180deg, rgba(24, 23, 23, .02), transparent 42%, rgba(24, 23, 23, .16) 67%, rgba(24, 23, 23, .54));
}

#systems .architecture-caption {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 28px;
}

/* Keyboard access can reveal the caption without taking over its GSAP position. */
#systems .architecture-caption:focus-within {
  opacity: 1 !important;
}

#systems .architecture-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

#systems .architecture-links .pill {
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 13px 19px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 400;
  white-space: nowrap;
}

#systems .architecture-links .systems-primary {
  min-height: 52px;
  padding-inline: 22px;
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
}

#systems .architecture-links .systems-secondary {
  border-color: rgba(244, 239, 231, .72);
  background: rgba(24, 23, 23, .26);
  color: var(--cream);
}

#systems .architecture-links .pill .arrow {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 19px;
  line-height: 1;
  transition: transform .2s var(--ease);
}

.roof-scene .scene-details:focus-visible,
#systems .architecture-links .pill:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 5px;
  box-shadow: 0 0 0 3px rgba(24, 23, 23, .72);
}

@media (hover: hover) and (pointer: fine) {
  .roof-scene .scene-details:hover,
  #systems .architecture-links .systems-primary:hover {
    background: #e8e1d6;
    border-color: #e8e1d6;
  }

  #systems .architecture-links .systems-secondary:hover {
    background: rgba(24, 23, 23, .48);
    border-color: var(--cream);
  }

  .roof-scene .scene-details:hover .scene-cta-arrow,
  #systems .architecture-links .pill:hover .arrow {
    transform: translate(2px, -2px);
  }
}

@media (max-width: 1100px) {
  .roof-scene .scene-bottom {
    max-width: min(430px, calc(100% - 48px));
    bottom: 88px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .roof-scene .scene-description {
    order: 0;
    flex: 0 1 auto;
    max-width: 330px;
  }

  .roof-scene .scene-details {
    order: 1;
  }
}

@media (max-width: 900px) {
  #systems .architecture-caption {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  .roof-scene .scene-bottom {
    left: 22px;
    width: calc(100% - 44px);
    max-width: none;
  }

  .roof-scene .scene-description {
    max-width: 290px;
  }

  #systems .architecture-links {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(100%, 320px);
  }

  #systems .architecture-links .pill {
    width: 100%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .roof-scene .scene-bottom {
    max-width: min(560px, calc(100% - 48px));
    bottom: 84px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .roof-scene .scene-details {
    order: 0;
  }

  .roof-scene .scene-description {
    order: 1;
    flex: 1 1 auto;
    font-size: 13px;
  }

  #systems .architecture-caption {
    gap: 12px;
  }

  #systems .architecture-links {
    flex-direction: row;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roof-scene .scene-details,
  .roof-scene .scene-details > span.scene-cta-arrow,
  #systems .architecture-links .pill,
  #systems .architecture-links .pill .arrow {
    transition: none;
  }

  .roof-scene .scene-details:hover .scene-cta-arrow,
  #systems .architecture-links .pill:hover .arrow {
    transform: none;
  }
}

html:not(.is-motion) .roof-scene .scene-details:hover .scene-cta-arrow,
html:not(.is-motion) #systems .architecture-links .pill:hover .arrow {
  transform: none;
}
