html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #ffffff;
}

/* The supplied logo already includes the full Art Space wordmark. */
a[aria-label="Art Space"] > span:first-child {
  width: 8rem !important;
  height: 4.5rem !important;
  padding: 0.2rem !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

a[aria-label="Art Space"] img[alt="Art Space"] {
  background: transparent !important;
}

a[aria-label="Art Space"] > span:nth-child(2) {
  display: none !important;
}

@media (min-width: 768px) {
  a[aria-label="Art Space"] > span:first-child {
    width: 10rem !important;
    height: 5.5rem !important;
  }
}

main#main-content .grid.grid-cols-1.md\:grid-cols-2.gap-10:has(a[href^="/portfolio/"]) {
  gap: 2rem !important;
}

main#main-content .grid.grid-cols-1.md\:grid-cols-2.gap-10:has(a[href^="/portfolio/"]) > div > a {
  border-radius: 1.25rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 22px 55px rgb(52 12 94 / 0.14);
}

main#main-content .grid.grid-cols-1.md\:grid-cols-2.gap-10:has(a[href^="/portfolio/"]) h3 {
  max-width: 48rem;
  font-size: clamp(1.6rem, 3vw, 3rem) !important;
  line-height: 1.25 !important;
}

/* Keep the three featured project names fully visible on the home page. */
main#main-content .grid.grid-cols-1.md\:grid-cols-3.gap-8:has(a[href^="/portfolio/"]) h3 {
  max-width: 100%;
  margin-bottom: 1rem !important;
  font-size: clamp(1.25rem, 1.55vw, 1.9rem) !important;
  line-height: 1.3 !important;
}

main#main-content .grid.grid-cols-1.md\:grid-cols-3.gap-8:has(a[href^="/portfolio/"]) > div > a > div > div.absolute.inset-0.flex.flex-col {
  padding: 1.5rem !important;
}

main#main-content section.bg-stone .grid.grid-cols-1.md\:grid-cols-3.gap-8 .aspect-square {
  aspect-ratio: 4 / 3 !important;
  border-radius: 1rem !important;
}

.portfolio-full-gallery {
  columns: 1;
  column-gap: 1.25rem;
}

.portfolio-gallery-item {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 16px 42px rgb(52 12 94 / 0.12);
}

.portfolio-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 500ms ease;
}

.portfolio-gallery-item:hover img {
  transform: scale(1.025);
}

@media (min-width: 768px) {
  .portfolio-full-gallery {
    columns: 2;
    column-gap: 1.5rem;
  }

  main#main-content .grid.grid-cols-1.md\:grid-cols-2.gap-10:has(a[href^="/portfolio/"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem !important;
  }

  main#main-content .grid.grid-cols-1.md\:grid-cols-2.gap-10:has(a[href^="/portfolio/"]) > div:first-child {
    grid-column: auto;
  }

  main#main-content .grid.grid-cols-1.md\:grid-cols-2.gap-10:has(a[href^="/portfolio/"]) > div:first-child h3 {
    font-size: clamp(1.6rem, 3vw, 3rem) !important;
  }
}

@media (min-width: 1200px) {
  .portfolio-full-gallery {
    columns: 3;
  }
}

img[alt="Art Space Team"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-square > .media-mask:has(> img[alt="Art Space Team"]) {
  height: 100%;
}

section.bg-stone .max-w-4xl.mx-auto.text-center p.max-w-2xl {
  margin-inline: auto;
}

.animated-stats-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgb(218 18 153 / 0.1), transparent 32%),
    radial-gradient(circle at 85% 80%, rgb(52 12 94 / 0.1), transparent 34%),
    linear-gradient(135deg, #f8f5fb 0%, #ffffff 52%, #f6f0fa 100%) !important;
}

.animated-stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(52 12 94 / 0.1) !important;
  border-radius: 1.5rem !important;
  background: rgb(255 255 255 / 0.9) !important;
  box-shadow: 0 18px 50px rgb(52 12 94 / 0.08) !important;
  backdrop-filter: blur(8px);
  transform: translateY(0);
}

.animated-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.3rem;
  background: linear-gradient(90deg, #da1299, #6d28a8, #da1299);
}

.animated-stat-card:hover {
  transform: translateY(-0.45rem);
  border-color: rgb(218 18 153 / 0.35) !important;
  box-shadow: 0 24px 60px rgb(52 12 94 / 0.15) !important;
}

.animated-stat-card > div:first-child,
.animated-stat-card > h4:first-child {
  font-size: clamp(3rem, 5vw, 4.75rem) !important;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #340c5e 20%, #da1299 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
}

.about-stat-card {
  min-height: 10rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.about-success-image,
.about-success-image > img {
  width: 100%;
  height: 100%;
}

.about-success-image > img {
  min-height: 28rem;
  object-fit: cover;
  object-position: center;
}

.animated-stat-card > p {
  letter-spacing: 0.08em !important;
  color: rgb(52 12 94 / 0.72) !important;
}

.animated-stat-card.is-counted {
  animation: stat-card-arrival 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes stat-card-arrival {
  from {
    opacity: 0.35;
    transform: translateY(1.25rem) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .animated-stat-card {
    padding: 1.5rem 0.75rem !important;
    border-radius: 1.1rem !important;
  }

  .about-success-image > img {
    min-height: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-stat-card,
  .animated-stat-card.is-counted {
    animation: none;
    transition: none;
  }
}
