/**
 * Hero-4 (index-white-4) — scoped polish for Wabi Sabi.
 */

.page-home .ws-hero-4.hero-4-new {
  background: #ffffff;
  overflow: hidden;
  z-index: 2;
}

.page-home .ws-hero-4 .hero-content,
.page-home .ws-hero-4 .hero-content .text,
.page-home .ws-hero-4 .hero-content .text h1.ws-hero-4__title {
  overflow: visible !important;
}

/* Side labels — match Agenci white-4 layout */
.page-home .ws-hero-4 .hero-content {
  align-items: center !important;
}

.page-home .ws-hero-4 .hero-content > span,
.page-home .ws-hero-4 .hero-content .ws-hero-4__label {
  color: #111111 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 0 !important;
  text-transform: none;
}

.page-home .ws-hero-4 .hero-content .ws-hero-4__label--events {
  text-transform: none !important;
}

/* “WABI ● SABI” — AGENCI-scale wordmark */
.page-home .ws-hero-4.hero-4-new .hero-content .text h1.ws-hero-4__title,
.page-home .hero-4-new .hero-content .text h1.ws-hero-4__title {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.1em !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  text-transform: uppercase !important;
  font-family: "Mona Sans", "DM Sans", system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(2.5rem, 9.5vw, 9.5rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.04em !important;
}

.page-home .ws-hero-4 .hero-content .text h1.ws-hero-4__title .ws-hero-4__title-wabi,
.page-home .ws-hero-4 .hero-content .text h1.ws-hero-4__title .ws-hero-4__title-sabi {
  display: inline-block !important;
  position: relative !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0.9 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.page-home .ws-hero-4 .hero-content .text h1.ws-hero-4__title .ws-hero-4__title-wabi {
  color: #cd2525 !important;
}

.page-home .ws-hero-4 .hero-content .text h1.ws-hero-4__title .ws-hero-4__title-sabi {
  color: #111111 !important;
}

/* Solid brand orb */
.page-home .ws-hero-4 .hero-content .text h1.ws-hero-4__title .ws-hero-4__orb,
.page-home .ws-hero-4__orb {
  position: relative !important;
  display: block !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  font-size: inherit !important;
  line-height: 0 !important;
  width: 0.7em !important;
  height: 0.7em !important;
  margin: 0.12em 0.12em 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.42) 0%, transparent 42%),
    #cd2525 !important;
  box-shadow: 0 10px 28px rgba(205, 37, 37, 0.32);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-origin: 50% 50%;
}

.page-home .ws-hero-4__orb::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.5);
  border-right-color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.page-home .ws-hero-4__orb.is-spinning {
  animation: ws-hero-orb-spin 5.5s linear infinite;
}

@keyframes ws-hero-orb-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ws-hero-4__orb.is-spinning {
    animation: none;
  }
}

html.ws-motion:not(.ws-motion-reduced) .page-home .ws-hero-4 .hero-content > span,
html.ws-motion:not(.ws-motion-reduced) .page-home .ws-hero-4 .ws-hero-4__title-wabi,
html.ws-motion:not(.ws-motion-reduced) .page-home .ws-hero-4 .ws-hero-4__title-sabi,
html.ws-motion:not(.ws-motion-reduced) .page-home .ws-hero-4 .ws-hero-4__orb {
  opacity: 0;
}

/* Hide leftover Agenci PRO if cached markup appears */
.page-home .ws-hero-4 .hero-content .text .pro-btn {
  display: none !important;
}

.page-home .ws-hero-4 .hero-shape img {
  filter: brightness(0) contrast(100%);
  opacity: 0.1;
}

/* Slider */
.page-home .ws-hero-4 .hero-slider-4 .hero-image {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

.page-home .ws-hero-4 .hero-slider-4 .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.page-home .ws-hero-4 + .about-section-new-2 {
  padding-top: clamp(3rem, 6vw, 5rem);
}

/* Bottom wordmark band */
.page-home .ws-hero-4__wordmark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding: clamp(3rem, 8vw, 5.5rem) 1rem clamp(4rem, 10vw, 7rem);
  background: linear-gradient(180deg, #050505 0%, #1a1a1a 100%);
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.page-home .ws-hero-4__wordmark-line {
  display: block;
  font-family: "Mona Sans", "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(4.5rem, 18vw, 14rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.page-home .ws-hero-4__wordmark-line + .ws-hero-4__wordmark-line {
  margin-top: -0.12em;
  position: relative;
  z-index: 1;
}

html.ws-motion-reduced .page-home .ws-hero-4__wordmark-line,
html:not(.ws-motion) .page-home .ws-hero-4__wordmark-line {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (max-width: 1200px) {
  .page-home .ws-hero-4 .hero-content > span,
  .page-home .ws-hero-4 .hero-content .ws-hero-4__label {
    margin-bottom: 0 !important;
    font-size: 16px !important;
  }

  .page-home .ws-hero-4.hero-4-new .hero-content .text h1.ws-hero-4__title {
    font-size: clamp(2.35rem, 10.5vw, 6.5rem) !important;
  }

  .page-home .ws-hero-4__orb,
  .page-home .ws-hero-4 .hero-content .text h1.ws-hero-4__title .ws-hero-4__orb {
    width: 1em !important;
    height: 1em !important;
    margin-top: 0.1em !important;
  }
}

@media (max-width: 991.98px) {
  /* Mobile/tablet: WABI SABI on top, Creative Events under */
  .page-home .ws-hero-4 .hero-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem 0.55rem !important;
    margin-bottom: 1.5rem !important;
  }

  .page-home .ws-hero-4 .hero-content .text {
    order: 1;
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
  }

  .page-home .ws-hero-4 .hero-content .ws-hero-4__label--creative {
    order: 2;
  }

  .page-home .ws-hero-4 .hero-content .ws-hero-4__label--events {
    order: 3;
    text-transform: none !important;
  }

  .page-home .ws-hero-4.hero-4-new .hero-content .text h1.ws-hero-4__title {
    justify-content: center !important;
  }
}

@media (max-width: 767.98px) {
  .page-home .ws-hero-4.hero-4-new .hero-content .text h1.ws-hero-4__title {
    font-size: clamp(2rem, 12vw, 3.25rem) !important;
  }

  .page-home .ws-hero-4__orb,
  .page-home .ws-hero-4 .hero-content .text h1.ws-hero-4__title .ws-hero-4__orb {
    width: 0.9em !important;
    height: 0.9em !important;
    margin-top: 0.08em !important;
  }

  .page-home .ws-hero-4 .hero-content .ws-hero-4__label {
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
  }

  .page-home .ws-hero-4__wordmark {
    margin-top: 1.5rem;
    padding-block: 2.5rem 3.5rem;
  }

  .page-home .ws-hero-4__wordmark-line {
    font-size: clamp(3.25rem, 22vw, 5.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ws-motion-reduced .page-home .ws-hero-4 .hero-content > span,
  html.ws-motion-reduced .page-home .ws-hero-4 .ws-hero-4__title-wabi,
  html.ws-motion-reduced .page-home .ws-hero-4 .ws-hero-4__title-sabi,
  html.ws-motion-reduced .page-home .ws-hero-4 .ws-hero-4__orb {
    opacity: 1;
  }
}
