@view-transition {
  navigation: auto;
}

.azt-spaces-hero {
  --text: #ffffff;
  --hero-image: none;
  --hero-image-next: var(--hero-image);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  background: #000;
  color: var(--text);
}

/* Break out of Astra/Elementor content containers and span full viewport width. */
.elementor-widget-azotea_spaces_hero {
  width: 100%;
}

.elementor-widget-azotea_spaces_hero > .elementor-widget-container {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.azt-spaces-hero * {
  box-sizing: border-box;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.azt-spaces-hero .hero-media {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.azt-spaces-hero .hero-media.is-pulsing::before,
.azt-spaces-hero .hero-media.is-pulsing::after {
  animation: aztMediaPulse 680ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.azt-spaces-hero .hero-panel {
  min-height: 100vh;
  padding: clamp(1.5rem, 3.2vw, 3rem);
  background: #17354b;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.azt-spaces-hero .panel-header {
  display: grid;
  gap: 0.35rem;
}

.azt-spaces-hero .panel-brand {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.azt-spaces-hero .panel-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
  font-size: clamp(52px, 4.6vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: #fff;
  font-weight: 500;
}

.azt-spaces-hero .hero-media::before,
.azt-spaces-hero .hero-media::after {
  content: "";
  position: absolute;
  inset: -1.25rem;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.04);
  will-change: opacity, transform;
  pointer-events: none;
}

.azt-spaces-hero .hero-media::before {
  background-image: var(--hero-image);
}

.azt-spaces-hero .hero-media::after {
  background-image: var(--hero-image-next);
  opacity: 0;
  transition: opacity 420ms ease;
}

.azt-spaces-hero .hero-media.is-transitioning::after {
  opacity: 1;
}

.azt-spaces-hero .spaces-nav {
  margin: 0;
}

.azt-spaces-hero .nav-label {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.azt-spaces-hero .hero-caption {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.azt-spaces-hero .hero-caption__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
  transition: opacity 120ms ease, transform 170ms ease;
  will-change: opacity, transform;
}

.azt-spaces-hero .hero-caption__body {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 120ms ease, transform 170ms ease;
  will-change: opacity, transform;
}

.azt-spaces-hero .hero-caption__body > :first-child {
  margin-top: 0;
}

.azt-spaces-hero .hero-caption__body > :last-child {
  margin-bottom: 0;
}

.azt-spaces-hero .hero-caption.is-updating .hero-caption__title,
.azt-spaces-hero .hero-caption.is-updating .hero-caption__body {
  opacity: 0.45;
  transform: translateY(4px);
}

.azt-spaces-hero .hero-caption.is-updating .hero-caption__body {
  transform: translateY(5px);
}

.azt-spaces-hero .spaces-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  counter-reset: spaces;
}

.azt-spaces-hero .spaces-menu li {
  counter-increment: spaces;
  width: 100%;
}

.azt-spaces-hero .spaces-menu a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.azt-spaces-hero .spaces-menu a::before {
  content: counter(spaces) ".";
  flex: 0 0 2.8rem;
  text-align: right;
  font-size: 2.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-0.08em);
  font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
}

.azt-spaces-hero .spaces-menu .menu-title {
  flex: 1 1 auto;
  display: block;
  font-size: clamp(1.25rem, 2.1vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
}

.azt-spaces-hero .spaces-menu li:hover > a,
.azt-spaces-hero .spaces-menu li:focus-within > a {
  background: rgba(255, 255, 255, 0.08);
}

.azt-spaces-hero .spaces-menu a:hover,
.azt-spaces-hero .spaces-menu a:focus-visible {
  color: #fff;
}

.azt-spaces-hero .spaces-menu a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 6px;
  border-radius: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .azt-spaces-hero .spaces-menu li:hover > a,
  .azt-spaces-hero .spaces-menu li:focus-within > a {
    transform: translateX(4px);
  }
}

@media (max-width: 900px) {
  .azt-spaces-hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(18rem, 44vh) auto;
  }

  .azt-spaces-hero .hero-media {
    min-height: unset;
  }

  .azt-spaces-hero .hero-panel {
    min-height: unset;
  }
}

@media (max-width: 520px) {
  .azt-spaces-hero .panel-title {
    font-size: 2.05rem;
  }

  .azt-spaces-hero .spaces-menu a::before {
    flex-basis: 2.2rem;
    font-size: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .azt-spaces-hero .hero-media::after,
  .azt-spaces-hero .spaces-menu a,
  .azt-spaces-hero .hero-caption__title,
  .azt-spaces-hero .hero-caption__body {
    transition: none;
  }

  .azt-spaces-hero .hero-media.is-pulsing::before,
  .azt-spaces-hero .hero-media.is-pulsing::after {
    animation: none;
  }
}

@keyframes aztMediaPulse {
  0% {
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.05);
  }
  42% {
    transform: scale(1.055);
    filter: saturate(1.07) contrast(1.04);
  }
  100% {
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.05);
  }
}
