/* CUSTOM CURSOR */
#cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
}

#cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

#cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0.45;
  transition: width 0.35s cubic-bezier(0.23,1,0.32,1), height 0.35s cubic-bezier(0.23,1,0.32,1), opacity 0.25s;
}

body.cursor-hover #cursor-dot { width: 4px; height: 4px; opacity: 0.6; }
body.cursor-hover #cursor-ring { width: 52px; height: 52px; opacity: 0.25; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: var(--ivory);
  border-bottom: 1px solid rgba(17,17,16,0.06);
  transition: background 0.35s ease, border-color 0.35s ease;
}


nav .logo {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav ul { list-style: none; display: flex; gap: 2.5rem; }

nav ul li a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--mid-gray);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul li a:hover { color: var(--ink); }

/* Dark variant — used on case study pages */
nav.dark {
  background: rgba(17,17,16,0.9);
  border-bottom-color: rgba(247,245,240,0.07);
}
nav.dark .logo { color: var(--ivory); }
nav.dark .back { color: rgba(247,245,240,0.45); }
nav.dark .back:hover { color: var(--ivory); }
nav.dark ul li a { color: rgba(247,245,240,0.45); }
nav.dark ul li a:hover { color: var(--ivory); }

/* FOOTER */
footer {
  background: var(--ink);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(247,245,240,0.3);
  letter-spacing: 0.04em;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: #F5EBE4;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: #B3561F; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(17,17,16,0.18);
  color: var(--dark-gray);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* SECTION PRIMITIVES */
.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1.25rem;
  display: block;
}

.rule {
  width: 2.5rem;
  height: 1.5px;
  background: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.underline-hover { position: relative; }
.underline-hover::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.underline-hover:hover::after { width: 100%; }

/* RESPONSIVE — global */
@media (max-width: 768px) {
  #cursor { display: none; }
  nav { padding: 1rem 1.5rem; }
  nav ul { gap: 1.25rem; }
  nav ul li a { font-size: 0.72rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
