/*
 * Multimedia Zauber – homepage layout
 *
 * The homepage uses its own component names so legacy page rules cannot
 * accidentally change its grid, spacing or breakpoints.
 */

.page-home {
  --home-content-width: 77.5rem;
  --home-gutter: clamp(1.125rem, 4vw, 5rem);
  --home-section-space: clamp(4.75rem, 9vw, 8rem);
  --home-card-radius: 1.25rem;
  --home-border-dark: rgba(255, 255, 255, 0.13);
  --home-border-light: #ded9e8;
  --home-copy-dark: #aaa7ba;
  --home-copy-light: #615c70;
  --home-surface-dark: #100e24;
  --home-surface-light: #f4f2f8;
}

.page-home .home-main {
  width: 100%;
  overflow: clip;
}

.page-home .home-container {
  width: min(100%, var(--home-content-width));
  margin-inline: auto;
}

.page-home .home-section {
  width: 100%;
  padding: var(--home-section-space) var(--home-gutter);
}

.page-home .home-eyebrow,
.page-home .home-kicker {
  margin: 0 0 1.25rem;
  color: #aaa5bb;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.page-home .home-section h2,
.page-home .home-statement h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.page-home .home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 0.4rem;
  background: linear-gradient(100deg, #744aff, #e63d9d);
  box-shadow: 0 0 0 rgba(128, 71, 246, 0);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.page-home .home-button:focus-visible {
  outline-color: #ffffff;
}

.page-home .home-empty-state {
  grid-column: 1 / -1;
  margin: 2rem 0 0;
  padding: 1.25rem;
  border: 1px solid var(--home-border-dark);
  border-radius: var(--home-card-radius);
  color: var(--home-copy-dark);
  text-align: center;
}

.page-home .home-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero */

.page-home .home-hero {
  position: relative;
  width: 100%;
  min-height: max(46rem, 100svh);
  padding-inline: var(--home-gutter);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 76% 48%,
      rgba(56, 38, 129, 0.95),
      transparent 34%
    ),
    #09091a;
}

.page-home .home-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3.625rem 3.625rem;
  pointer-events: none;
}

.page-home .home-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(21rem, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: max(46rem, 100svh);
  padding-block: clamp(8rem, 15vh, 10rem) clamp(4rem, 8vh, 6rem);
}

.page-home .home-hero-copy {
  min-width: 0;
}

.page-home .home-hero-copy h1 {
  max-width: 11ch;
  margin: 1.5rem 0;
  font-size: clamp(3.75rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  overflow-wrap: normal;
  text-wrap: balance;
}

.page-home .home-hero-copy h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px #b39eff;
}

.page-home .home-hero-intro {
  max-width: 37rem;
  margin: 0;
  color: var(--home-copy-dark);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.page-home .home-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: min(34rem, 45vw);
  isolation: isolate;
}

.page-home .home-hero-art::before {
  position: absolute;
  z-index: -1;
  width: min(19rem, 60%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d6349a;
  content: "";
  filter: blur(7rem);
  opacity: 0.25;
  animation: pulseGlow 6s ease-in-out infinite;
}

.page-home .home-ring {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid rgba(167, 133, 255, 0.35);
  border-radius: 50%;
}

.page-home .home-ring-outer {
  width: min(28rem, 90%);
}

.page-home .home-ring-inner {
  width: min(19rem, 62%);
  border-style: dashed;
  animation: spin 22s linear infinite;
}

.page-home .home-hero-art .logo-draw {
  width: min(20.625rem, 72%);
  max-width: 100%;
}

/* Statement */

.page-home .home-statement {
  width: 100%;
  padding: clamp(4.75rem, 8vw, 7rem) var(--home-gutter);
  background: var(--home-surface-light);
  color: #141323;
  text-align: center;
}

.page-home .home-statement h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.page-home .home-statement h2 span {
  color: #777185;
}

.page-home .home-statement .home-kicker {
  color: #706b7d;
}

/* Section headings */

.page-home .home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
}

.page-home .home-section-heading > p {
  max-width: 34rem;
  margin: 0;
  color: var(--home-copy-dark);
  line-height: 1.75;
}

/* Services */

.page-home .home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.page-home .home-service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 23rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--home-border-dark);
  border-radius: var(--home-card-radius);
  background: rgba(255, 255, 255, 0.025);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.page-home .home-service-card small {
  color: #8c67f5;
  font-weight: 800;
}

.page-home .home-service-icon {
  margin: clamp(2.25rem, 5vw, 4rem) 0 1rem;
  color: #a78cff;
  font-size: 1.8rem;
}

.page-home .home-service-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.page-home .home-service-card p {
  margin: 0 0 1.25rem;
  color: var(--home-copy-dark);
  line-height: 1.65;
}

.page-home .home-service-card a {
  margin-top: auto;
  color: #bfaeff;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Projects */

.page-home .home-projects {
  background: var(--home-surface-light);
  color: #171526;
}

.page-home .home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.page-home .home-project-card,
.page-home .home-project-card a {
  min-width: 0;
}

.page-home .home-project-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--home-card-radius);
  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(230, 61, 157, 0.65),
      transparent 33%
    ),
    linear-gradient(135deg, #261853, #0c0b1d);
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.page-home .home-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.page-home .home-project-card h3 {
  margin: 1.15rem 0 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
}

.page-home .home-project-card p {
  margin: 0;
  color: var(--home-copy-light);
}

.page-home .home-text-link {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
  color: #171526;
  font-size: 0.85rem;
  font-weight: 800;
}

.page-home .home-projects .home-empty-state {
  border-color: var(--home-border-light);
  color: var(--home-copy-light);
}

/* Partners */

.page-home .home-partners {
  background: var(--home-surface-dark);
}

.page-home .home-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.page-home .home-partner-card {
  min-width: 0;
}

.page-home .home-partner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 11rem;
  padding: 1.25rem;
  border: 1px solid var(--home-border-dark);
  border-radius: var(--home-card-radius);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.page-home .home-partner-content img {
  width: auto;
  max-width: min(100%, 8.25rem);
  height: auto;
  max-height: 4rem;
  object-fit: contain;
}

.page-home .home-partner-initials {
  display: grid;
  place-items: center;
  width: 3.6rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  background: linear-gradient(135deg, #744aff, #e63d9d);
  font-weight: 900;
}

.page-home .home-partner-content b,
.page-home .home-partner-content small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.page-home .home-partner-content small {
  color: #9d98ad;
  line-height: 1.35;
}

/* About */

.page-home .home-about {
  background: #09091a;
}

.page-home .home-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.page-home .home-about-number {
  color: #ffffff;
  font-size: clamp(6rem, 15vw, 13rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.1em;
  opacity: 0.08;
  white-space: nowrap;
}

.page-home .home-about-copy p:not(.home-eyebrow) {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--home-copy-dark);
  line-height: 1.8;
}

/* Process */

.page-home .home-process {
  background: var(--home-surface-dark);
}

.page-home .home-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.page-home .home-process-grid article {
  min-width: 0;
  padding: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.page-home .home-process-grid small {
  color: #9c7cff;
  font-weight: 800;
}

.page-home .home-process-grid h3 {
  margin: 2.5rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

/* Testimonials */

.page-home .home-testimonials {
  background: #09091a;
}

.page-home .home-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.page-home .home-testimonial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 18rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--home-border-dark);
  border-radius: var(--home-card-radius);
  background: rgba(255, 255, 255, 0.035);
}

.page-home .home-stars {
  color: #ffd166;
  letter-spacing: 0.08em;
}

.page-home .home-testimonial-card blockquote {
  margin: 1.5rem 0;
}

.page-home .home-testimonial-card blockquote p {
  margin: 0;
  color: #ded9e8;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-home .home-testimonial-card b {
  margin-top: auto;
}

.page-home .home-testimonial-card small {
  margin-top: 0.35rem;
  color: #9d98ad;
}

/* Contact */

.page-home .home-contact {
  background:
    radial-gradient(circle at center, rgba(56, 39, 116, 0.95), transparent 58%),
    #09091a;
  text-align: center;
}

.page-home .home-contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-home .home-contact h2 {
  max-width: 17ch;
}

.page-home .home-contact p {
  max-width: 39rem;
  margin: 1.5rem 0 0;
  color: var(--home-copy-dark);
  line-height: 1.75;
}

/* Responsive layout */

@media (max-width: 68.75rem) {
  .page-home .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-service-card {
    min-height: 20rem;
  }

  .page-home .home-partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 61.25rem) {
  .page-home .home-hero {
    min-height: 0;
  }

  .page-home .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(8.5rem, 18vw, 11rem);
    padding-bottom: 4rem;
  }

  .page-home .home-hero-copy {
    max-width: 48rem;
  }

  .page-home .home-hero-art {
    height: clamp(18rem, 52vw, 28rem);
  }

  .page-home .home-hero-art .logo-draw {
    width: min(19rem, 60%);
  }

  .page-home .home-section-heading,
  .page-home .home-about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .home-section-heading {
    align-items: start;
    gap: 1.5rem;
  }

  .page-home .home-about-number {
    font-size: clamp(6rem, 24vw, 11rem);
    text-align: center;
  }

  .page-home .home-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48.75rem) {
  .page-home {
    --home-gutter: clamp(1rem, 5vw, 1.5rem);
    --home-section-space: clamp(4rem, 13vw, 5.5rem);
  }

  .page-home .home-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 13vw, 4.6rem);
  }

  .page-home .home-section h2,
  .page-home .home-statement h2 {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .page-home .home-project-grid,
  .page-home .home-testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .page-home .home-partner-content {
    min-height: 9.5rem;
    padding: 1rem 0.75rem;
  }

  .page-home .home-partner-content img {
    max-width: min(100%, 7rem);
    max-height: 3.5rem;
  }
}

@media (max-width: 38.75rem) {
  .page-home .home-hero-layout {
    gap: 1.25rem;
    padding-top: 8.5rem;
    padding-bottom: 3.5rem;
  }

  .page-home .home-hero-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .page-home .home-hero-intro {
    font-size: 0.98rem;
  }

  .page-home .home-hero-art {
    height: 17rem;
  }

  .page-home .home-ring-outer {
    width: min(17rem, 88vw);
  }

  .page-home .home-ring-inner {
    width: min(12rem, 62vw);
  }

  .page-home .home-hero-art .logo-draw {
    width: min(13.5rem, 70%);
  }

  .page-home .home-service-grid,
  .page-home .home-project-grid,
  .page-home .home-process-grid,
  .page-home .home-testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .home-service-card,
  .page-home .home-testimonial-card {
    min-height: 0;
  }

  .page-home .home-service-icon {
    margin-top: 2rem;
  }

  .page-home .home-service-card a {
    margin-top: 1rem;
  }

  .page-home .home-project-media {
    aspect-ratio: 16 / 11;
  }

  .page-home .home-about-number {
    font-size: 28vw;
  }

  .page-home .home-process-grid article {
    padding-inline: 0;
  }

  .page-home .home-process-grid h3 {
    margin-top: 1.25rem;
  }
}

@media (max-width: 23.75rem) {
  .page-home .home-partner-grid {
    gap: 0.55rem;
  }

  .page-home .home-partner-content {
    min-height: 8.75rem;
    padding: 0.75rem 0.45rem;
    font-size: 0.82rem;
  }

  .page-home .home-partner-content img {
    max-width: min(100%, 5.75rem);
    max-height: 3rem;
  }

  .page-home .home-partner-content small {
    font-size: 0.68rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .page-home .home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2.6rem rgba(128, 71, 246, 0.35);
  }

  .page-home .home-service-card:hover {
    transform: translateY(-0.45rem);
    border-color: #8059ed;
    background: rgba(119, 72, 255, 0.1);
  }

  .page-home .home-project-card a:hover .home-project-media img {
    transform: scale(1.035);
  }

  .page-home .home-partner-content:is(a):hover {
    transform: translateY(-0.4rem);
    border-color: #8059ed;
    box-shadow: 0 1.5rem 3.5rem rgba(109, 61, 230, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero-art::before,
  .page-home .home-ring-inner {
    animation: none;
  }

  .page-home .home-button,
  .page-home .home-service-card,
  .page-home .home-project-media img,
  .page-home .home-partner-content {
    transition: none;
  }
}
