html {
  scroll-behavior: smooth;
}

::selection {
  background: #e63b2e;
  color: #f8f7f4;
}

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

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

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* ---- Custom cursor (desktop only) ---- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #e63b2e;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.15s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid #e63b2e;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: #f8f7f4;
  background: rgba(230, 59, 46, 0.1);
}

.hero-line {
  overflow: hidden;
}

.hero-line span {
  display: inline-block;
  transform: translateY(115%);
  animation: lineReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(2) span {
  animation-delay: 0.12s;
}

.hero-line:nth-child(3) span {
  animation-delay: 0.24s;
}

.hero-line:nth-child(4) span {
  animation-delay: 0.36s;
}

@keyframes lineReveal {
  to {
    transform: translateY(0);
  }
}

.nav-scrolled {
  background: rgba(248, 247, 244, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.mobile-menu {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  clip-path: inset(0 0 0 0);
}

.link-hover {
  position: relative;
}

.link-hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-hover:hover::after {
  width: 100%;
}

.service-card {
  transition: background 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}

.service-card:hover {
  background: #0a0a0a;
  color: #f8f7f4;
  transform: translateY(-4px);
}

.service-card:hover .service-icon,
.service-card:hover .service-num {
  color: #e63b2e;
}

.status-ok {
  color: #0f766e;
}

.status-error {
  color: #b91c1c;
}

/* ---- Horizontal scroll helpers ---- */
.hide-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
