:root {
  --gold: #f5a800;
  --ink: #070707;
}

html {
  background: var(--ink);
}

body {
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #080808;
}

::-webkit-scrollbar-thumb {
  background: #2b2b2b;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

#siteHeader.scrolled {
  background: rgba(7, 7, 7, 0.83);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}

.cavo-logo {
  filter: url(#cavo-logo-white);
}

.nav-link {
  position: relative;
  transition: color .25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .25s ease;
}

.nav-link:hover {
  color: white;
}

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

.gold-btn {
  background: var(--gold);
  color: #070707;
  border: 1px solid var(--gold);
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.gold-btn:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(245, 168, 0, 0.4);
}

.outline-btn {
  border: 1px solid rgba(255, 255, 255, .24);
  color: white;
  transition: transform .25s ease, border-color .25s ease, color .25s ease;
}

.outline-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .9);
}

.hero-media img {
  transform: scale(1.035);
  transform-origin: center top;
  animation: heroZoom 12s ease-out both;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.status-dot.live {
  background: #22c55e;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: inherit;
  opacity: 0.45;
  animation: statusPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes statusPing {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.65);
}

.marquee-dot {
  color: var(--gold);
  font-size: 0.75rem;
}

@keyframes marqueeScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.section-kicker,
.micro-label {
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.micro-label {
  color: rgba(255, 255, 255, .42);
  letter-spacing: .2em;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: .83;
  text-transform: uppercase;
  letter-spacing: .015em;
}

.feature-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: #0b0b0b;
  transition: background .3s ease, transform .3s ease;
}

.feature-card:hover {
  background: #121212;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(245, 168, 0, 0.11),
    transparent 70%
  );
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.feature-number {
  color: rgba(255, 255, 255, .24);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  transition: color .3s ease, transform .3s ease;
}

.feature-card:hover .feature-number {
  color: var(--gold);
  transform: translateX(4px);
}

.feature-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.25rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.feature-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
}

.gallery-item {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, .08);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 8;
}

.gallery-item::after {
  content: 'VIEW';
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
  filter: brightness(.68);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(120px);
  opacity: .11;
  pointer-events: none;
}

.orb-gold {
  background: var(--gold);
}

.orb-purple {
  background: #7838ff;
}

.menu-line {
  position: absolute;
  width: 20px;
  height: 1px;
  background: white;
  transition: transform .25s ease, top .25s ease;
}

.menu-line:first-child {
  transform: translateY(-4px);
}

.menu-line:last-child {
  transform: translateY(4px);
}

#menuButton.open .menu-line:first-child {
  transform: rotate(45deg);
}

#menuButton.open .menu-line:last-child {
  transform: rotate(-45deg);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
  transition-delay: var(--delay, 0ms);
}

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

#lightbox.show {
  display: flex;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-auto-rows: 160px;
  }

  .gallery-item,
  .gallery-item.wide {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 170px;
    gap: 7px;
  }

  .gallery-item,
  .gallery-item.wide {
    grid-column: span 1;
  }

  .gallery-item.tall {
    grid-row: span 2;
  }

  .feature-card {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
