/* Section A — Hero */
.hero {
  display: grid;
  align-items: center;
  gap: 48px;
  grid-template-columns: 1fr auto;
  min-block-size: 100vh;
  overflow: hidden;
  padding-block: calc(var(--nav-height) + 40px) 80px;
  position: relative;
}

.hero .container {
  display: contents;
}

.hero__inner {
  grid-column: 1;
  padding-inline-start: var(--gutter);
  position: relative;
  z-index: 2;
}

.hero__content {
  max-inline-size: 720px;
}

/* Memphis decorative background */
.hero__memphis {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero__memphis-shape {
  opacity: 0.12;
  position: absolute;
}

.hero__memphis-shape--circle {
  animation: memphisFloat 14s ease-in-out infinite;
  border: 2px solid var(--pr-purple-soft);
  border-radius: 50%;
  block-size: 120px;
  inline-size: 120px;
  inset-block-start: 18%;
  inset-inline-end: 12%;
}

.hero__memphis-shape--circle-filled {
  animation: memphisFloat 18s ease-in-out infinite reverse;
  background: var(--pr-purple);
  block-size: 48px;
  border-radius: 50%;
  inline-size: 48px;
  inset-block-end: 22%;
  inset-inline-end: 28%;
  opacity: 0.2;
}

.hero__memphis-shape--triangle {
  animation: memphisSpin 24s linear infinite;
  block-size: 0;
  border-block-end: 70px solid rgba(123, 77, 184, 0.25);
  border-inline: 40px solid transparent;
  inset-block-start: 12%;
  inset-inline-end: 38%;
  inline-size: 0;
}

.hero__memphis-shape--zigzag {
  animation: memphisFloat 20s ease-in-out infinite;
  inset-block-end: 30%;
  inset-inline-start: 8%;
  inline-size: 140px;
  opacity: 0.15;
}

.hero__memphis-shape--dots {
  background-image: radial-gradient(var(--pr-purple-soft) 2px, transparent 2px);
  background-size: 16px 16px;
  block-size: 100px;
  inline-size: 100px;
  inset-block-start: 55%;
  inset-inline-end: 6%;
  opacity: 0.2;
}

.hero__memphis-shape--squiggle {
  animation: memphisFloat 16s ease-in-out infinite reverse;
  inset-block-start: 70%;
  inset-inline-start: 15%;
  inline-size: 100px;
  opacity: 0.18;
}

@keyframes memphisFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, -18px) rotate(6deg); }
}

@keyframes memphisSpin {
  to { transform: rotate(360deg); }
}

/* Hero animated collage */
.hero__collage-wrap {
  align-self: center;
  block-size: min(680px, 78vh);
  grid-column: 2;
  inline-size: min(520px, 46vw);
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  overflow: hidden;
  padding-inline-end: var(--gutter);
  position: relative;
  z-index: 2;
}

.hero__collage {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  block-size: 100%;
}

.hero__collage-col {
  overflow: hidden;
  position: relative;
}

.hero__collage-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__collage-col--up .hero__collage-track {
  animation: collageScrollUp 22s linear infinite;
}

.hero__collage-col--down .hero__collage-track {
  animation: collageScrollDown 26s linear infinite;
}

.hero__collage-col--slow.hero__collage-col--up .hero__collage-track {
  animation-duration: 30s;
}

.hero__collage-item {
  aspect-ratio: var(--ratio-collage);
  background-position: center;
  background-size: cover;
  border-radius: 16px;
  flex-shrink: 0;
  inline-size: 100%;
  overflow: hidden;
  position: relative;
}

.hero__collage-item--medium {
  align-self: center;
  inline-size: 78%;
}

.hero__collage-item::after {
  background: linear-gradient(to top, rgba(10, 10, 10, 0.35), transparent);
  content: "";
  inset: 0;
  position: absolute;
}

.hero__collage-item--ph1 {
  background-image: linear-gradient(145deg, #1a1228 0%, #3d2060 50%, #1a1228 100%);
}

.hero__collage-item--ph2 {
  background-image: linear-gradient(160deg, #16161a 0%, #2a1845 60%, #111111 100%);
}

.hero__collage-item--ph3 {
  background-image: linear-gradient(135deg, #221833 0%, #5b2d8e 45%, #1a1228 100%);
}

.hero__collage-item--ph4 {
  background-image: linear-gradient(180deg, #111111 0%, #3a2560 70%, #16161a 100%);
}

@keyframes collageScrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes collageScrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.hero.is-visible .hero__collage-wrap {
  animation: fadeUpWord 700ms var(--ease-out) 1000ms forwards;
  opacity: 0;
  transform: translateY(24px);
}

.hero__headline-wrap {
  margin-block-end: 32px;
  padding-inline-start: 32px;
  position: relative;
}

.hero__headline-wrap::before {
  background-color: var(--pr-purple);
  block-size: 100%;
  content: "";
  inline-size: 1px;
  inset-block-start: 0;
  inset-inline-start: 0;
  position: absolute;
  transform: scaleY(0);
  transform-origin: top;
}

.hero.is-visible .hero__headline-wrap::before {
  animation: drawLine 400ms var(--ease-out) forwards;
}

.hero__headline {
  margin-block-end: 0;
}

.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
}

.hero.is-visible .hero__word {
  animation: fadeUpWord 600ms var(--ease-out) forwards;
}

.hero.is-visible .hero__word:nth-child(1) { animation-delay: 400ms; }
.hero.is-visible .hero__word:nth-child(2) { animation-delay: 520ms; }
.hero.is-visible .hero__word:nth-child(3) { animation-delay: 640ms; }
.hero.is-visible .hero__word:nth-child(4) { animation-delay: 760ms; }
.hero.is-visible .hero__word:nth-child(5) { animation-delay: 880ms; }
.hero.is-visible .hero__word:nth-child(6) { animation-delay: 1000ms; }

.hero__subtext {
  margin-block: 32px 40px;
  max-inline-size: 480px;
  opacity: 0;
  transform: translateY(24px);
}

.hero.is-visible .hero__subtext {
  animation: fadeUpWord 600ms var(--ease-out) 1100ms forwards;
}

.hero__cta {
  opacity: 0;
  transform: translateY(24px);
}

.hero.is-visible .hero__cta {
  animation: fadeUpWord 600ms var(--ease-out) 1200ms forwards;
}

.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.btn--hero {
  border-color: var(--pr-purple-soft);
  box-shadow:
    0 0 0 1px rgba(123, 77, 184, 0.22),
    0 18px 48px rgba(91, 45, 142, 0.18);
  min-inline-size: 210px;
  text-align: center;
}

.btn--hero:hover {
  background-color: rgba(91, 45, 142, 0.18);
  box-shadow:
    0 0 0 1px rgba(123, 77, 184, 0.4),
    0 22px 60px rgba(91, 45, 142, 0.32);
}

.hero__secondary-link {
  align-items: center;
  color: var(--pr-white);
  column-gap: 14px;
  display: inline-flex;
  min-block-size: 52px;
  opacity: 0;
  padding-inline: 4px;
  position: relative;
  transform: translateY(24px);
}

.hero__secondary-link::before {
  background: linear-gradient(90deg, rgba(91, 45, 142, 0.35), transparent);
  block-size: 1px;
  content: "";
  inline-size: 0;
  inset-block-end: -6px;
  inset-inline-start: 0;
  position: absolute;
  transition: inline-size 0.35s var(--ease-out);
}

.hero__secondary-link:hover::before {
  inline-size: 100%;
}

.hero.is-visible .hero__secondary-link {
  animation: fadeUpWord 600ms var(--ease-out) 1280ms forwards;
}

.hero__secondary-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__secondary-arrow {
  align-items: center;
  background: rgba(91, 45, 142, 0.12);
  border: 1px solid rgba(123, 77, 184, 0.25);
  border-radius: 999px;
  color: var(--pr-purple-soft);
  display: inline-flex;
  font-size: 22px;
  justify-content: center;
  min-block-size: 42px;
  min-inline-size: 42px;
  transition:
    transform 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.hero__secondary-link:hover .hero__secondary-arrow {
  background: rgba(91, 45, 142, 0.2);
  border-color: rgba(123, 77, 184, 0.5);
  transform: rotate(90deg) scale(1.06);
}

.hero__cta-note {
  color: color-mix(in srgb, var(--pr-muted) 82%, var(--pr-white) 18%);
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-block-start: 18px;
  max-inline-size: 440px;
  opacity: 0;
  transform: translateY(24px);
}

.hero.is-visible .hero__cta-note {
  animation: fadeUpWord 600ms var(--ease-out) 1360ms forwards;
}

.hero__scroll-cue {
  bottom: 40px;
  color: var(--pr-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0;
  position: absolute;
  right: var(--gutter);
  text-transform: uppercase;
}

.hero.is-visible .hero__scroll-cue {
  animation: fadeUpWord 600ms var(--ease-out) 1400ms forwards;
}

@keyframes drawLine {
  to {
    transform: scaleY(1);
  }
}

@keyframes fadeUpWord {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__headline-wrap::before {
    transform: scaleY(1);
  }

  .hero__word,
  .hero__subtext,
  .hero__cta,
  .hero__secondary-link,
  .hero__cta-note,
  .hero__scroll-cue,
  .hero__collage-wrap {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .hero__memphis-shape {
    animation: none;
  }

  .hero__collage-col--up .hero__collage-track,
  .hero__collage-col--down .hero__collage-track {
    animation: none;
  }
}

/* Section B — Stats */
.stats {
  background-color: var(--pr-surface);
  padding-block: 48px;
}

.stats__grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
}

.stats__item {
  padding-block: 16px;
  padding-inline: 32px;
  position: relative;
  text-align: center;
}

.stats__item:not(:last-child)::after {
  background-color: var(--pr-border);
  block-size: 60%;
  content: "";
  inline-size: 1px;
  inset-block-start: 20%;
  inset-inline-end: 0;
  position: absolute;
}

.stats__number {
  color: var(--pr-white);
  margin-block-end: 8px;
}

.stats__label {
  color: var(--pr-muted);
}

@media (max-width: 1023px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item:nth-child(2)::after {
    display: none;
  }

  .stats__item {
    padding-block: 24px;
  }
}

@media (max-width: 767px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }

  .stats__item::after {
    display: none !important;
  }

  .stats__item:not(:last-child) {
    border-block-end: 1px solid var(--pr-border);
  }
}

/* Section C — Core Capabilities (Bento) */
.bento-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, 1fr);
}

.bento-card {
  background: var(--pr-surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-block-size: 260px;
  overflow: hidden;
  padding: 40px;
  position: relative;
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.bento-card::before {
  background: radial-gradient(
    circle at var(--card-mx, 50%) var(--card-my, 50%),
    rgba(91, 45, 142, 0.15) 0%,
    transparent 60%
  );
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.4s var(--ease-out);
}

.bento-card:hover {
  border-color: rgba(91, 45, 142, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-6px);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card--large { grid-column: span 8; }
.bento-card--medium { grid-column: span 4; }
.bento-card--half { grid-column: span 6; }

.bento-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  margin-block-end: 16px;
  position: relative;
  z-index: 1;
}

.bento-card__desc {
  color: var(--pr-muted);
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.bento-card__meta {
  color: var(--pr-purple);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-block-start: 32px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

@media (max-width: 1023px) {
  .bento-card--large,
  .bento-card--medium,
  .bento-card--half {
    grid-column: span 12;
  }
}

/* Section D — Portfolio */
.portfolio-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
  margin-block-end: 48px;
}

.portfolio-card {
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  background: var(--pr-surface);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  overflow: hidden;
  padding: 40px;
  position: relative;
  transition: transform 0.5s var(--ease-out);
}

.portfolio-card::before {
  background: linear-gradient(to bottom, transparent 30%, rgba(10, 10, 10, 0.92));
  content: "";
  inset: 0;
  position: absolute;
  transition: opacity 0.5s var(--ease-out);
  z-index: 1;
}

.portfolio-card__bg {
  background: linear-gradient(
    135deg,
    var(--pr-surface) 0%,
    #1a1228 40%,
    #16161a 70%,
    var(--pr-surface) 100%
  );
  inset: 0;
  position: absolute;
  transition: transform 0.6s var(--ease-out);
}

.portfolio-card__glow {
  background: var(--pr-purple);
  block-size: 150px;
  filter: blur(80px);
  inline-size: 150px;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.5s var(--ease-out),
    block-size 0.5s var(--ease-out),
    inline-size 0.5s var(--ease-out);
  z-index: 0;
}

.portfolio-card:hover {
  transform: translateY(-4px);
}

.portfolio-card:hover .portfolio-card__bg {
  transform: scale(1.05);
}

.portfolio-card:hover .portfolio-card__glow {
  block-size: 280px;
  inline-size: 280px;
  opacity: 0.2;
}

.portfolio-card:hover::before {
  opacity: 0.95;
}

.portfolio-card__content {
  position: relative;
  z-index: 2;
}

.portfolio-card__category {
  color: var(--pr-muted);
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-block-end: 8px;
  text-transform: uppercase;
}

.portfolio-card__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.2;
}

.portfolio-teaser__cta {
  text-align: center;
}

@media (max-width: 767px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    padding: 28px;
  }
}

/* Section E — Why Us */
.why-us__headline {
  margin-block-end: 64px;
  max-inline-size: 600px;
}

.why-us__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(3, 1fr);
}

.why-us__card {
  position: relative;
}

.why-us__watermark {
  color: var(--pr-white);
  font-family: var(--font-display);
  font-size: clamp(80px, 10vw, 120px);
  font-weight: 300;
  inset-block-start: -20px;
  inset-inline-start: 0;
  line-height: 1;
  opacity: 0.15;
  pointer-events: none;
  position: absolute;
  user-select: none;
  z-index: 0;
}

.why-us__content {
  padding-block-start: 48px;
  position: relative;
  z-index: 1;
}

.why-us__title {
  margin-block-end: 12px;
}

.why-us__text {
  color: var(--pr-muted);
  font-size: 15px;
}

@media (max-width: 1023px) {
  .why-us__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-card:hover,
  .portfolio-card:hover {
    transform: none;
  }

  .portfolio-card:hover .portfolio-card__bg {
    transform: none;
  }
}

@media (max-width: 1023px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    inline-size: 100%;
  }

  .hero__inner,
  .hero__collage-wrap {
    padding-inline: var(--gutter);
    width: 100%;
  }

  .hero__collage-wrap {
    block-size: min(480px, 55vh);
    inline-size: 100%;
    max-inline-size: 480px;
    padding-inline: var(--gutter);
  }
}

@media (max-width: 767px) {
  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn--hero,
  .hero__secondary-link {
    inline-size: 100%;
    justify-content: center;
  }

  .hero__cta-note {
    max-inline-size: none;
  }

  .hero__collage-wrap {
    block-size: min(380px, 48vh);
  }
}

/* Section — Testimonials */
.testimonials {
  overflow: hidden;
}

.testimonials .section-header {
  text-align: center;
}

.testimonials__featured {
  border-block-end: 1px solid var(--pr-border);
  margin-block-end: 56px;
  margin-inline: auto;
  max-inline-size: 720px;
  padding-block-end: 56px;
  text-align: center;
}

.testimonials__quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  margin-block-end: 24px;
}

.testimonials__author {
  color: var(--pr-muted);
  font-size: 14px;
}

.testimonials__author strong {
  color: var(--pr-white);
  display: block;
  font-weight: 500;
  margin-block-end: 4px;
}

.testimonials__logos-label {
  color: var(--pr-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-block-end: 32px;
  text-align: center;
  text-transform: uppercase;
}

.logo-marquee {
  display: flex;
  flex-direction: column;
  gap: 24px;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  overflow: hidden;
}

.logo-marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
}

.logo-marquee__track--rtl {
  animation: marqueeRTL 35s linear infinite;
}

.logo-marquee__track--ltr {
  animation: marqueeLTR 35s linear infinite;
}

.logo-marquee__item {
  align-items: center;
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: 12px;
  color: var(--pr-muted);
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  justify-content: center;
  letter-spacing: 0.02em;
  min-block-size: 72px;
  min-inline-size: 160px;
  padding-inline: 24px;
  transition:
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.logo-marquee__item:hover {
  border-color: rgba(91, 45, 142, 0.4);
  color: var(--pr-white);
}

@keyframes marqueeRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeLTR {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track--rtl,
  .logo-marquee__track--ltr {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .logo-marquee {
    mask-image: none;
  }
}

/* Swiper Testimonials Carousel Styling */
.testimonials-swiper-container {
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 40px !important;
}

.testimonial-pagination {
  margin-top: 24px;
  position: static !important;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.testimonial-pagination .swiper-pagination-bullet {
  background: var(--pr-muted) !important;
  opacity: 0.5;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin: 0 !important;
  display: inline-block;
  cursor: pointer;
}

.testimonial-pagination .swiper-pagination-bullet-active {
  background: var(--pr-purple-soft) !important;
  opacity: 1;
  width: 24px !important;
  border-radius: 4px !important;
}

