/* Nav + cursor chrome only — no global design tokens (case study inline styles own those). */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.case-study-page {
  overflow-x: hidden;
  cursor: none;
}

#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  background: #fff;
  transition: width 0.25s, height 0.25s, opacity 0.25s;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 20px;
  height: 20px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 0 52px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.case-study-page #nav {
  background: rgba(6, 7, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-study-page .nav-logo {
  color: rgba(255, 255, 255, 0.9);
}

.case-study-page .nav-links a {
  color: rgba(255, 255, 255, 0.5);
}

.case-study-page .nav-links a:hover {
  color: #fff;
}

.case-study-page .nav-resume {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: none;
}

.case-study-page .nav-resume:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.case-study-page .nav-cta {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.case-study-page .nav-cta:hover {
  background: transparent;
  color: #fff;
}

.case-study-page .hamburger {
  color: rgba(255, 255, 255, 0.9);
}

.case-study-page .mobile-nav {
  background: rgba(6, 7, 8, 0.97);
}

.case-study-page .mobile-nav a {
  color: rgba(255, 255, 255, 0.85);
}

.case-study-page .mobile-nav a:hover {
  color: #c9a84c;
}

.nav-logo {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-cta {
  padding: 8px 22px;
  border: 1.5px solid currentColor;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
  box-sizing: border-box;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
}

.nav-resume {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 22px;
  border: none;
  border-radius: 2px;
  transition: background 0.2s;
  box-sizing: border-box;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 35px;
}

.nav-resume svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #c9a84c;
  z-index: 10000;
  pointer-events: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 550;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.mobile-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #c9a84c;
  transition: width 0.3s ease;
}

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

.mobile-nav .mn-cta {
  margin-top: 8px;
  padding: 12px 40px;
  background: #c9a84c;
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}

.mobile-nav .mn-cta::after {
  display: none;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #c9a84c;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
  width: 100%;
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none !important;
  }

  nav {
    padding: 0 24px;
  }
}

@media not all and (hover: hover) and (pointer: fine) {
  body.case-study-page {
    cursor: auto;
  }

  body.case-study-page #cursor,
  body.case-study-page #cursor-ring {
    display: none !important;
  }
}
