.home-signature {
  position: relative;
  background:
    radial-gradient(1200px 600px at 8% 12%, rgba(36, 107, 185, 0.24) 0%, rgba(36, 107, 185, 0) 72%),
    linear-gradient(135deg, #385dc7 0%, #4a66c4 55%, #3256bb 100%);
  color: #f6f5f5;
  overflow: hidden;
}

.home-signature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  background: rgba(40, 63, 142, 0.34);
  border-right: 1px solid rgba(246, 245, 245, 0.14);
  pointer-events: none;
}

.home-signature__grid {
  position: relative;
  z-index: 1;
  width: min(1280px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2fr);
}

.home-signature__side {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 84px 3.2vw;
  background: transparent;
  border-right: 0;
}

.home-signature__kicker {
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-signature__title {
  margin: 16px 0 0;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-signature__text {
  margin: 30px 0 0;
  padding-bottom: 12px;
  line-height: 1.68;
  color: rgba(246, 245, 245, 0.92);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-signature__cta {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(246, 245, 245, 0.38);
  color: #f6f5f5;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, background 0.2s ease;
}

.home-signature__cta:hover,
.home-signature__cta:focus-visible {
  border-color: rgba(70, 199, 255, 0.88);
  background: rgba(70, 199, 255, 0.14);
}

.home-signature.has-reveal .home-signature__kicker,
.home-signature.has-reveal .home-signature__title,
.home-signature.has-reveal .home-signature__text,
.home-signature.has-reveal .home-signature__cta {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
}

.home-signature.has-reveal.is-visible .home-signature__kicker,
.home-signature.has-reveal.is-visible .home-signature__title,
.home-signature.has-reveal.is-visible .home-signature__text,
.home-signature.has-reveal.is-visible .home-signature__cta {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.home-signature.has-reveal .home-signature__kicker { transition-delay: 0.08s; }
.home-signature.has-reveal .home-signature__title { transition-delay: 0.16s; }
.home-signature.has-reveal .home-signature__text:nth-of-type(1) { transition-delay: 0.24s; }
.home-signature.has-reveal .home-signature__text:nth-of-type(2) { transition-delay: 0.32s; }
.home-signature.has-reveal .home-signature__cta { transition-delay: 0.4s; }

.home-signature__main {
  padding: 84px 4vw 92px;
}

.home-signature__masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 88px;
  grid-auto-flow: dense;
  gap: 0;
  transition: gap 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-signature__tile {
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(246, 245, 245, 0.2);
  min-height: 0;
  grid-row: span 3;
  transition: border-radius 0.45s ease;
}

.home-signature__tile--a { grid-column: 1; grid-row: 1 / span 3; background: linear-gradient(145deg, #df2029 0%, #f28a1b 100%); }
.home-signature__tile--b { grid-column: 2; grid-row: 1 / span 2; background: linear-gradient(145deg, #099bd2 0%, #139ea7 100%); }
.home-signature__tile--c { grid-column: 3; grid-row: 1 / span 4; background: linear-gradient(145deg, #9430a9 0%, #6c2e8f 100%); }
.home-signature__tile--d { grid-column: 2; grid-row: 3 / span 3; background: linear-gradient(145deg, #f5e608 0%, #f28a1b 100%); }
.home-signature__tile--e { grid-column: 1; grid-row: 4 / span 3; background: linear-gradient(145deg, #246bb9 0%, #9430a9 100%); }
.home-signature__tile--f { grid-column: 3; grid-row: 5 / span 2; background: linear-gradient(145deg, #4cb45a 0%, #099bd2 100%); }
.home-signature__tile--g { grid-column: 2; grid-row: 6 / span 3; background: linear-gradient(145deg, #f28a1b 0%, #df2029 100%); }
.home-signature__tile--h { grid-column: 3; grid-row: 7 / span 2; background: linear-gradient(145deg, #46c7ff 0%, #246bb9 100%); }
.home-signature__tile--i { grid-column: 1; grid-row: 7 / span 2; background: linear-gradient(145deg, #9430a9 0%, #099bd2 100%); }

.home-signature.has-reveal.is-visible .home-signature__tile {
  animation-duration: 3.6s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
  animation-fill-mode: both;
  will-change: transform, background;
}

.home-signature.has-reveal .home-signature__masonry {
  gap: 18px;
}

.home-signature.has-reveal.is-visible .home-signature__masonry {
  gap: 0;
  transition-delay: 3.05s;
}

.home-signature.has-reveal.is-visible .home-signature__tile {
  border-radius: 0;
  transition-delay: 3.05s;
}

.home-signature.has-reveal.is-visible .home-signature__tile--a { animation-name: signature-swap-a; }
.home-signature.has-reveal.is-visible .home-signature__tile--b { animation-name: signature-swap-b; }
.home-signature.has-reveal.is-visible .home-signature__tile--c { animation-name: signature-swap-c; }
.home-signature.has-reveal.is-visible .home-signature__tile--d { animation-name: signature-swap-d; }
.home-signature.has-reveal.is-visible .home-signature__tile--e { animation-name: signature-swap-e; }
.home-signature.has-reveal.is-visible .home-signature__tile--f { animation-name: signature-swap-f; }
.home-signature.has-reveal.is-visible .home-signature__tile--g { animation-name: signature-swap-a; }
.home-signature.has-reveal.is-visible .home-signature__tile--h { animation-name: signature-swap-b; }
.home-signature.has-reveal.is-visible .home-signature__tile--i { animation-name: signature-swap-c; }

@keyframes signature-swap-a {
  0%, 82% { transform: scale(0.965); }
  0% { background: linear-gradient(145deg, #df2029 0%, #f28a1b 100%); }
  16% { background: linear-gradient(145deg, #099bd2 0%, #139ea7 100%); }
  32% { background: linear-gradient(145deg, #9430a9 0%, #6c2e8f 100%); }
  48% { background: linear-gradient(145deg, #f5e608 0%, #f28a1b 100%); }
  64% { background: linear-gradient(145deg, #246bb9 0%, #9430a9 100%); }
  80% { background: linear-gradient(145deg, #4cb45a 0%, #099bd2 100%); }
  100% { transform: scale(1); background: linear-gradient(145deg, #df2029 0%, #f28a1b 100%); }
}

@keyframes signature-swap-b {
  0%, 82% { transform: scale(0.965); }
  0% { background: linear-gradient(145deg, #099bd2 0%, #139ea7 100%); }
  16% { background: linear-gradient(145deg, #f5e608 0%, #f28a1b 100%); }
  32% { background: linear-gradient(145deg, #4cb45a 0%, #099bd2 100%); }
  48% { background: linear-gradient(145deg, #df2029 0%, #f28a1b 100%); }
  64% { background: linear-gradient(145deg, #9430a9 0%, #6c2e8f 100%); }
  80% { background: linear-gradient(145deg, #246bb9 0%, #9430a9 100%); }
  100% { transform: scale(1); background: linear-gradient(145deg, #099bd2 0%, #139ea7 100%); }
}

@keyframes signature-swap-c {
  0%, 82% { transform: scale(0.965); }
  0% { background: linear-gradient(145deg, #9430a9 0%, #6c2e8f 100%); }
  16% { background: linear-gradient(145deg, #246bb9 0%, #9430a9 100%); }
  32% { background: linear-gradient(145deg, #f5e608 0%, #f28a1b 100%); }
  48% { background: linear-gradient(145deg, #099bd2 0%, #139ea7 100%); }
  64% { background: linear-gradient(145deg, #df2029 0%, #f28a1b 100%); }
  80% { background: linear-gradient(145deg, #4cb45a 0%, #099bd2 100%); }
  100% { transform: scale(1); background: linear-gradient(145deg, #9430a9 0%, #6c2e8f 100%); }
}

@keyframes signature-swap-d {
  0%, 82% { transform: scale(0.965); }
  0% { background: linear-gradient(145deg, #f5e608 0%, #f28a1b 100%); }
  16% { background: linear-gradient(145deg, #9430a9 0%, #6c2e8f 100%); }
  32% { background: linear-gradient(145deg, #4cb45a 0%, #099bd2 100%); }
  48% { background: linear-gradient(145deg, #df2029 0%, #f28a1b 100%); }
  64% { background: linear-gradient(145deg, #246bb9 0%, #9430a9 100%); }
  80% { background: linear-gradient(145deg, #099bd2 0%, #139ea7 100%); }
  100% { transform: scale(1); background: linear-gradient(145deg, #f5e608 0%, #f28a1b 100%); }
}

@keyframes signature-swap-e {
  0%, 82% { transform: scale(0.965); }
  0% { background: linear-gradient(145deg, #246bb9 0%, #9430a9 100%); }
  16% { background: linear-gradient(145deg, #df2029 0%, #f28a1b 100%); }
  32% { background: linear-gradient(145deg, #099bd2 0%, #139ea7 100%); }
  48% { background: linear-gradient(145deg, #f5e608 0%, #f28a1b 100%); }
  64% { background: linear-gradient(145deg, #4cb45a 0%, #099bd2 100%); }
  80% { background: linear-gradient(145deg, #9430a9 0%, #6c2e8f 100%); }
  100% { transform: scale(1); background: linear-gradient(145deg, #246bb9 0%, #9430a9 100%); }
}

@keyframes signature-swap-f {
  0%, 82% { transform: scale(0.965); }
  0% { background: linear-gradient(145deg, #4cb45a 0%, #099bd2 100%); }
  16% { background: linear-gradient(145deg, #246bb9 0%, #9430a9 100%); }
  32% { background: linear-gradient(145deg, #df2029 0%, #f28a1b 100%); }
  48% { background: linear-gradient(145deg, #9430a9 0%, #6c2e8f 100%); }
  64% { background: linear-gradient(145deg, #f5e608 0%, #f28a1b 100%); }
  80% { background: linear-gradient(145deg, #099bd2 0%, #139ea7 100%); }
  100% { transform: scale(1); background: linear-gradient(145deg, #4cb45a 0%, #099bd2 100%); }
}

@media (max-width: 1024px) {
  .home-signature::before {
    width: 100%;
    height: 560px;
    inset: 0 0 auto 0;
  }

  .home-signature__grid {
    grid-template-columns: 1fr;
  }

  .home-signature__side {
    position: static;
    padding: 74px 9vw 38px;
    border-right: 0;
  }

  .home-signature__main {
    padding: 14px 9vw 76px;
  }

  .home-signature__title {
    margin-top: 14px;
    line-height: 0.95;
  }

  .home-signature__text {
    margin-top: 26px;
    max-width: 34ch;
    line-height: 1.72;
  }

  .home-signature__cta {
    margin-top: 24px;
  }
}

@media (max-width: 820px) {
  .home-signature__masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 88px;
  }

  .home-signature__tile {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .home-signature::before {
    height: 600px;
  }

  .home-signature__side {
    padding: 66px 10vw 34px;
  }

  .home-signature__kicker {
    letter-spacing: 0.09em;
  }

  .home-signature__title {
    font-size: clamp(1.95rem, 8vw, 2.35rem);
    margin-top: 12px;
    line-height: 0.94;
  }

  .home-signature__main {
    padding: 14px 10vw 62px;
  }

  .home-signature__text {
    margin-top: 24px;
    max-width: 30ch;
    line-height: 1.66;
  }

  .home-signature__cta {
    margin-top: 22px;
    padding: 12px 20px;
  }

  .home-signature__masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
    margin-top: 6px;
  }

  .home-signature__tile {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 160px;
    border-radius: 12px;
  }

  .home-signature.has-reveal .home-signature__masonry,
  .home-signature.has-reveal.is-visible .home-signature__masonry {
    gap: 12px;
    transition-delay: 0s;
  }

  .home-signature.has-reveal.is-visible .home-signature__tile {
    border-radius: 12px;
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-signature__kicker,
  .home-signature__title,
  .home-signature__text,
  .home-signature__cta {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .home-signature__tile {
    animation: none !important;
    transform: none !important;
  }
}
