/* ============================================
   REKA — Prisma-style cinematic hero
   ============================================ */

body.home-prisma {
  --hero-cream: #e8ede6;
  --hero-cream-muted: rgba(232, 237, 230, 0.72);
}

/* --- White centered nav pill --- */
body.home-prisma .header--prisma {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: transparent;
  border: none;
  box-shadow: none;
  height: auto;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

body.home-prisma .header--prisma .header__shell {
  pointer-events: auto;
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0;
  margin-top: 0;
  padding: 0.55rem 1rem 0.65rem;
  border-radius: 0 0 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-top: none;
  box-shadow:
    0 12px 40px rgba(15, 20, 25, 0.1),
    0 1px 0 rgba(5, 183, 114, 0.35) inset;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition:
    width var(--transition-base, 0.3s),
    border-radius var(--transition-base, 0.3s),
    box-shadow var(--transition-base, 0.3s);
}

body.home-prisma .header--prisma.header--scrolled .header__shell {
  width: min(100%, calc(100% - 1rem));
  border-radius: 0 0 1rem 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 10px 32px rgba(15, 20, 25, 0.12),
    0 1px 0 rgba(5, 183, 114, 0.4) inset;
}

body.home-prisma .header--prisma .header__inner {
  gap: 0.75rem;
}

body.home-prisma .header--prisma .reka-logo--on-dark {
  display: none !important;
}

body.home-prisma .header--prisma .reka-logo--on-light {
  display: block !important;
}

body.home-prisma .header--prisma .header__logo .reka-logo {
  height: 46px;
}

body.home-prisma .header--prisma .nav__link {
  color: var(--color-text-secondary, #5c6670);
  font-size: 0.8125rem;
}

body.home-prisma .header--prisma .nav__link:hover {
  color: var(--color-text, #0f1419);
  background: rgba(15, 20, 25, 0.05);
}

body.home-prisma .header--prisma .nav__link--active {
  color: #fff;
  background: linear-gradient(135deg, #05b772 0%, #049e65 100%);
  box-shadow: 0 4px 14px rgba(5, 183, 114, 0.35);
}

body.home-prisma .header--prisma .nav-toggle {
  color: var(--color-text, #0f1419);
  background: rgba(15, 20, 25, 0.05);
  border-color: var(--color-border, rgba(15, 20, 25, 0.08));
}

body.home-prisma .header--prisma .btn--primary {
  box-shadow: 0 4px 14px rgba(5, 183, 114, 0.35);
}

@media (max-width: 1024px) {
  body.home-prisma .header--prisma .nav {
    display: none;
  }

  body.home-prisma .header--prisma .nav-toggle {
    display: flex;
  }

  body.home-prisma .header--prisma .header__shell {
    width: calc(100% - 1rem);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0 0 1.1rem 1.1rem;
  }

  body.home-prisma .header--prisma .header__logo .reka-logo {
    height: 40px;
  }

  body.home-prisma .header--prisma .nav-dropdown {
    display: none;
  }
}

/* --- Hero frame --- */
.hero-prisma {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0.65rem;
  padding-top: 0;
  background: var(--color-bg, #f4f6f8);
}

.hero-prisma__frame {
  position: relative;
  height: calc(100vh - 0.65rem);
  height: calc(100dvh - 0.65rem);
  min-height: 560px;
  overflow: hidden;
  border-radius: 1.25rem;
  isolation: isolate;
}

.hero-prisma__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-prisma__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-prisma__gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.08) 42%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* --- Bottom content grid --- */
.hero-prisma__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 1rem 0.5rem;
}

.hero-prisma__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 1.25rem;
}

.hero-prisma__title-col {
  min-width: 0;
  max-width: 100%;
}

.hero-prisma__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.07em;
  color: var(--hero-cream);
  font-size: clamp(4.5rem, 26vw, 16rem);
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hero-prisma__tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: clamp(0.65rem, 2vw, 1rem) 0 0;
  font-size: clamp(0.6875rem, 2.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 237, 230, 0.55);
  opacity: 0;
  transform: translateY(14px);
}

.hero-prisma__tagline-word {
  color: var(--color-primary, #05b772);
  font-weight: 700;
  text-shadow: 0 0 24px rgba(5, 183, 114, 0.35);
}

.hero-prisma__tagline-dot {
  color: rgba(232, 237, 230, 0.35);
  letter-spacing: 0;
}

.hero-prisma__title-col.is-visible .hero-prisma__tagline {
  animation: prismaFadeUp 0.75s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-prisma__asterisk {
  position: absolute;
  top: 0.12em;
  right: -0.22em;
  font-size: 0.28em;
  line-height: 1;
  color: var(--color-primary, #05b772);
}

.words-pull-up {
  display: inline-flex;
  flex-wrap: wrap;
}

.words-pull-up__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: prismaWordPull 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hero-prisma__side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  min-width: 0;
  max-width: 100%;
}

.hero-prisma__services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 22rem;
}

.hero-prisma__services li {
  position: relative;
  padding-left: 1.1rem;
  font-size: clamp(0.8125rem, 2.1vw, 0.9375rem);
  line-height: 1.45;
  color: var(--hero-cream);
  opacity: 0;
  transform: translateY(14px);
}

.hero-prisma__services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary, #05b772);
  box-shadow: 0 0 8px rgba(5, 183, 114, 0.55);
}

.hero-prisma__side.is-visible .hero-prisma__services li:nth-child(1) { animation: prismaFadeUp 0.65s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-prisma__side.is-visible .hero-prisma__services li:nth-child(2) { animation: prismaFadeUp 0.65s 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-prisma__side.is-visible .hero-prisma__services li:nth-child(3) { animation: prismaFadeUp 0.65s 0.46s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-prisma__side.is-visible .hero-prisma__services li:nth-child(4) { animation: prismaFadeUp 0.65s 0.54s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-prisma__side.is-visible .hero-prisma__services li:nth-child(5) { animation: prismaFadeUp 0.65s 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-prisma__side.is-visible .hero-prisma__services li:nth-child(6) { animation: prismaFadeUp 0.65s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.hero-prisma__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.35rem 0.35rem 0.35rem 1.25rem;
  border-radius: 9999px;
  background: var(--color-primary, #05b772);
  color: #0f1419;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.25s ease, background 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
}

.hero-prisma__side.is-visible .hero-prisma__cta {
  animation: prismaFadeUp 0.8s 0.82s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hero-prisma__cta:hover {
  gap: 0.75rem;
  background: #049e65;
  transform: translateY(-2px);
}

.hero-prisma__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: #0f1419;
  color: var(--hero-cream);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.hero-prisma__cta:hover .hero-prisma__cta-icon {
  transform: scale(1.08);
}

.hero-prisma__cta-icon svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .hero-prisma {
    padding: 0.85rem;
    padding-top: 0;
  }

  .hero-prisma__frame {
    height: calc(100vh - 0.85rem);
    height: calc(100dvh - 0.85rem);
    border-radius: 1.5rem;
  }

  .hero-prisma__bottom {
    padding: 0 1.5rem 0.65rem;
  }

  .hero-prisma__title {
    font-size: clamp(5rem, 22vw, 14rem);
  }
}

@media (min-width: 1024px) {
  body.home-prisma .header--prisma .header__shell {
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 0.6rem 1.5rem 0.75rem;
  }

  .hero-prisma {
    padding: 1rem;
    padding-top: 0;
  }

  .hero-prisma__frame {
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
    border-radius: 2rem;
  }

  .hero-prisma__bottom {
    padding: 0 2.5rem 1rem;
  }

  .hero-prisma__grid {
    grid-template-columns: 8fr 4fr;
    gap: 2rem;
  }

  .hero-prisma__services {
    grid-template-columns: 1fr;
  }

  .hero-prisma__side {
    padding-bottom: 2rem;
    gap: 1.35rem;
  }

  .hero-prisma__title {
    font-size: clamp(6rem, 19vw, 13rem);
  }

  .hero-prisma__title-col {
    transform: translateY(-1.5rem);
  }

  .hero-prisma__tagline {
    font-size: 1.2rem;
    margin-top: 1.15rem;
    letter-spacing: 0.26em;
  }
}

@media (max-width: 639px) {
  .hero-prisma__services {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1rem;
    max-width: 100%;
  }

  .hero-prisma__title {
    font-size: clamp(3.25rem, 20vw, 5.5rem);
    letter-spacing: -0.05em;
  }

  .hero-prisma__tagline {
    letter-spacing: 0.16em;
  }

  .hero-prisma__asterisk {
    right: -0.12em;
  }

  .hero-prisma__bottom {
    padding: 0 0.85rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .words-pull-up__word,
  .hero-prisma__tagline,
  .hero-prisma__services li,
  .hero-prisma__cta {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
