:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 4px;
  width: 0%;
  background: #ef4444;
  transform-origin: left center;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 32px;
  background: #ef4444;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.menu-toggle.is-open span {
  background: #fff;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

#site-menu.is-open {
  display: block;
  animation: revealMenu 0.55s cubic-bezier(0.76, 0, 0.24, 1) both;
}

@keyframes revealMenu {
  from {
    clip-path: circle(0% at 95% 5%);
  }
  to {
    clip-path: circle(150% at 95% 5%);
  }
}

.spin-star {
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-bg {
  animation: cinematicPan 15s ease-in-out infinite;
}

@keyframes cinematicPan {
  0%, 100% {
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
  35% {
    transform: scale(1.14) translate(-36px, 24px) rotate(1.5deg);
  }
  70% {
    transform: scale(1.05) translate(24px, -18px) rotate(-1deg);
  }
}

.soft-pulse {
  animation: softPulse 8s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.85;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #ef4444;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.marquee-track {
  width: max-content;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-33.333%);
  }
}

[dir="rtl"] .marquee-track {
  animation-direction: reverse;
}

.work-filter-card.is-hidden {
  display: none;
}

.work-filter.is-active {
  background: #ef4444;
  color: #fff;
}

.image-zoom img {
  transition: transform 0.5s ease;
}

.image-zoom:hover img,
.group:hover .image-zoom img {
  transform: scale(1.06);
}

@media (max-width: 640px) {
  .brand-mark {
    left: 1rem;
    top: 1.35rem;
  }

  .menu-toggle {
    right: 0.75rem;
    top: 0.75rem;
  }
}
