:root {
  --plum: #3f1c58;
  --orchid: #8a4bb8;
  --lilac: #f3eafb;
  --ivory: #fcfafd;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background: var(--ivory);
  color: var(--plum);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.font-display {
  font-family: "Playfair Display", "Vazirmatn", serif;
}

.page-enter {
  animation: fadein 0.9s ease both;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.header-solid {
  background: rgba(252, 250, 253, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(63, 28, 88, 0.08);
}

.side-caption {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.42em;
}

.hero-shift {
  will-change: transform;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.from-left {
  transform: translateX(28px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: 0.1s;
}
.d2 {
  transition-delay: 0.2s;
}
.d3 {
  transition-delay: 0.32s;
}

.svc-row {
  border-bottom: 1px solid rgba(63, 28, 88, 0.12);
  transition: background 0.35s ease, padding 0.35s ease;
}

.svc-row:hover {
  background: #f3eafb;
}

.doc-shot img {
  filter: grayscale(0.35) contrast(1.05);
  transition: filter 0.5s ease, transform 1.1s ease;
}

.doc-shot:hover img {
  filter: grayscale(0) contrast(1.08);
  transform: scale(1.06);
}

.frame-line {
  position: relative;
}

.frame-line::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 2;
}

.ba-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  aspect-ratio: 3 / 4;
  background: #f3eafb;
}

.ba-slider > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50%;
  overflow: hidden;
}

.ba-before-wrap img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: var(--ba-w, 100%);
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 1px;
  background: #fff;
  transform: translateX(50%);
  pointer-events: none;
}

.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: #3f1c58;
  border: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-screen {
  position: fixed;
  inset: 0;
  background: #2a123c;
  color: #fff;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: 0.4s ease;
}

.menu-screen.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.menu-screen a {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  display: block;
  margin: 0.45rem 0;
  transition: color 0.25s ease;
}

.menu-screen a:hover {
  color: #d4b3ee;
}

.img-parallax {
  will-change: transform;
}

.map-frame {
  filter: grayscale(0.4) sepia(0.12) hue-rotate(220deg) saturate(0.85);
}

.wa {
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
