:root {
  --accent: #8f1d2c;
  --accent-hover: #aa263c;
  --accent-soft: rgba(143, 29, 44, 0.18);
  --accent-rgb: 143, 29, 44;
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.025);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #6f1320, var(--accent-hover));
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.62);
  will-change: transform;
}

body::before {
  content: '';
  position: fixed;
  z-index: -1;
  top: -240px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.075), transparent 68%);
  transform: translate3d(0, var(--page-shift, 0), 0);
  will-change: transform;
}

.header {
  transition: height 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
  height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 9, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.hero-actions .button-primary,
.contact-actions .button-light {
  border-color: rgba(var(--accent-rgb), 0.72);
  background: linear-gradient(145deg, rgba(170, 38, 60, 0.94), rgba(111, 19, 32, 0.82));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 46px rgba(var(--accent-rgb), 0.24);
}

.hero-actions .button-primary:hover,
.contact-actions .button-light:hover {
  border-color: #c64b5d;
  background: linear-gradient(145deg, #b72d43, #811827);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 52px rgba(var(--accent-rgb), 0.34);
}

.menu-cta {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}

.menu-cta:hover {
  border-color: rgba(var(--accent-rgb), 0.76);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.42), rgba(var(--accent-rgb), 0.17));
  color: #fff;
  transform: translateY(-2px);
}

.admin-entry:hover,
.menu a.admin-entry:hover,
.hero-actions .text-link:hover,
.brief-submit:hover {
  border-color: rgba(var(--accent-rgb), 0.76);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.38), rgba(var(--accent-rgb), 0.13));
  color: #fff !important;
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  border-color: var(--accent);
}

.footer {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(36, 36, 36, 0.7), rgba(14, 14, 14, 0.58));
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 65px rgba(0, 0, 0, 0.24);
}

.footer a {
  transition: color 0.22s;
}

.footer a:hover,
.footer .qodemy-link:hover,
#back-to-top:hover {
  color: #c95162;
}

.lightbox-media {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-media::after {
  content: '© Gabrielly Alves';
  position: absolute;
  right: 18px;
  bottom: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#back-to-top {
  cursor: pointer;
}

.eyebrow span,
.admin-entry::before,
.reel-note {
  background: var(--accent);
}

.service > span,
.service:hover i,
.process-steps span,
.case-study summary span,
.case-study-grid small,
.lightbox-count {
  color: var(--accent);
}

.work-filters button:hover,
.work-filters button.is-active,
.carousel-controls button:hover,
.lightbox-nav:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-hover), rgba(var(--accent-rgb), 0.56));
}

::-webkit-scrollbar-thumb:hover {
  background: #bd3d50;
}

@media (max-width: 760px) {
  .header.is-scrolled {
    height: calc(64px + env(safe-area-inset-top));
  }

  .footer {
    padding: 20px;
  }

  .menu-cta:hover,
  .hero-actions .button-primary:hover,
  .contact-actions .button-light:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress span,
  body::before,
  .header {
    transition: none;
  }

  body::before {
    transform: none;
  }
}
