body {
  font-family: var(--font-primary);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Cursor */
.custom-cursor,
.cursor-follower {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
}

.custom-cursor {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent-primary);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-accent-primary);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.custom-cursor.hide,
.cursor-follower.hide {
  opacity: 0;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.cursor-follower.hover {
  transform: translate(-50%, -50%) scale(1.35);
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor,
  .cursor-follower {
    display: none;
  }
}

/* Nav */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding 0.25s ease, background 0.25s ease, transform 0.25s ease;
  padding: 14px 0;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 10, 0.9);
}

.nav-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 600;
  position: relative;
  padding: 6px 0;
}

.nav-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gradient-primary);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Mobile-only items (hidden on desktop) */
.nav-panel-head,
.nav-close,
.nav-overlay {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  /* Overlay (created by JS) */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 999; /* under navbar (1000) and drawer (1001) */
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(340px, 80vw);
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transition: right 0.35s ease;
    padding: 78px 22px 22px; /* room for the header row */
    overflow: auto;
    z-index: 1001;
  }

  .nav-links.active {
    right: 0;
  }

  /* Drawer header row (injected by JS) */
  .nav-panel-head {
    display: flex;
    position: sticky;
    top: 0;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    margin-top: -62px; /* pull header up into the top padding area */
    margin-bottom: 10px;
    background: rgba(20, 20, 20, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1;
  }

  .nav-panel-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--color-text-primary);
  }

  /* Close button (injected by JS) */
  .nav-close {
    display: grid;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-primary);
    font-size: 28px;
    line-height: 1;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .nav-close:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
  }
}

/* Headings */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent-primary);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-label:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.12;
  margin: 0.6rem 0 1rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  border: 2px solid rgba(201, 165, 103, 0.7);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(201, 165, 103, 0.12);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--color-bg-secondary);
  text-align: center;
}

.footer-content {
  color: var(--color-text-secondary);
}

.footer-tagline {
  color: var(--color-text-tertiary);
  font-size: 0.95rem;
}
