/* AYAI homepage: preserve brand styles and give custom work a secondary place. */
.ayai-home #products .product-container,
.ayai-home #case-studies .product-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ayai-home #custom-development {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-8);
  border-block: 1px solid var(--border);
  text-align: right;
}

.ayai-home .custom-development-content {
  flex: 1;
  min-width: 0;
}

.ayai-home #custom-development h2 {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
  color: var(--muted);
}

.ayai-home #custom-development h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.2rem;
}

.ayai-home #custom-development h3 a {
  color: var(--text);
}

.ayai-home #custom-development p {
  margin: 0 0 var(--space-3);
  max-width: 82ch;
}

.ayai-home .custom-development-details {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ayai-home #custom-development > .button {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ayai-home #products .product-container,
  .ayai-home #case-studies .product-container {
    grid-template-columns: 1fr;
  }

  .ayai-home #custom-development {
    align-items: stretch;
    flex-direction: column;
    gap: var(--space-5);
  }
}
