@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
  --bg: #050505;
  --bg-header: rgba(10, 10, 10, 0.95);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-hover: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --white-20: rgba(255, 255, 255, 0.2);
  --radius: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container      { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 90rem; margin: 0 auto; padding: 0 1.5rem; }
.icon { width: 1.5rem; height: 1.5rem; }

/* ── Header ──────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 0;
  mix-blend-mode: difference;
  transition: background-color 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--bg-header);
  backdrop-filter: blur(8px);
  mix-blend-mode: normal;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; transition: opacity 0.2s ease; }
.logo-link:hover { opacity: 0.8; }
.logo-img { height: 36px; width: auto; }
@media (min-width: 768px) { .logo-img { height: 48px; } }

.menu-trigger {
  background: none; border: none; color: var(--text);
  padding: 0.5rem; margin-right: -0.5rem;
  cursor: pointer; display: flex; transition: color 0.2s ease;
}
.menu-trigger:hover { color: var(--text-muted); }
.menu-icon { width: 1.5rem; height: 1.5rem; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(85vw, 360px);
  height: 100vh;
  background: #111;
  border-left: 1px solid var(--card-border);
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 60;
}
.mobile-menu.is-open { transform: translateX(0); }
.menu-close {
  align-self: flex-end; background: none; border: none;
  color: var(--text); cursor: pointer; padding: 0.5rem;
}
.mobile-nav { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.mobile-nav-link { font-size: 1.25rem; font-weight: 500; color: var(--text); transition: color 0.2s ease; }
.mobile-nav-link:hover { color: var(--cyan); }

.mobile-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; z-index: 55;
}
.mobile-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ── Hero ────────────────────────────────────────────── */

.hero {
  position: relative; height: 100dvh; width: 100%;
  overflow: hidden; display: flex;
  align-items: center; justify-content: center; background: #000;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
}
.hero-inner {
  position: relative; z-index: 10;
  text-align: center; padding: 0 1.5rem;
  width: 100%; max-width: 80rem; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hero-logo {
  width: 100%; max-width: 300px;
  height: auto; object-fit: contain;
  filter: drop-shadow(0 25px 35px rgba(0,0,0,0.5));
}
@media (min-width: 768px) { .hero-logo { max-width: 500px; } }
.hero-heading {
  font-size: 12vw; font-weight: 900;
  letter-spacing: -0.05em; text-transform: uppercase;
  line-height: 0.9; color: var(--text);
}

/* ── Sections ────────────────────────────────────────── */

.section { padding: 8rem 0; }
@media (max-width: 767px) { .section { padding: 5rem 0; } }

.section-heading {
  font-size: 10vw; font-weight: 900;
  letter-spacing: -0.05em; text-transform: uppercase;
  line-height: 0.9; color: var(--text);
  margin: 0 0 5rem;
}
@media (min-width: 1024px) { .section-heading { font-size: 6rem; } }

/* ── Project cards ───────────────────────────────────── */

.work-stack  { display: flex; flex-direction: column; gap: 2rem; }
.work-grid   { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .work-grid { grid-template-columns: 1fr 1fr; } }

.project-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  cursor: pointer;
}
.aspect-featured { aspect-ratio: 3 / 2; }
.aspect-standard { aspect-ratio: 4 / 3; }

.project-dots {
  position: absolute; top: 1rem; left: 1rem;
  z-index: 10; display: flex; gap: 0.5rem;
}
.dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.dot-red    { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green  { background: #22c55e; }

.project-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.project-card:hover .project-img {
  filter: grayscale(0);
  transform: scale(1.03);
}

/* Subtle border glow on hover */
.project-card:hover {
  border-color: var(--card-border-hover);
}

/* ── Service cards ───────────────────────────────────── */

.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr 1fr; } }

.service-card {
  border-radius: var(--radius); padding: 2rem;
  backdrop-filter: blur(24px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}
.service-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
}

.service-icon-box {
  width: 4rem; height: 4rem; border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon { width: 2rem; height: 2rem; color: var(--text); }
.icon-cyan  { background: var(--cyan); }
.icon-pink  { background: var(--pink); }
.icon-white { background: var(--white-20); }

.service-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin: 0 0 0.75rem;
}
.service-desc {
  color: var(--text-muted); line-height: 1.75; margin: 0;
}

/* ── Footer ──────────────────────────────────────────── */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--card-border);
  padding: 5rem 0;
}
.footer-top {
  display: grid; grid-template-columns: 1fr;
  gap: 4rem; margin-bottom: 4rem;
}
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }

.footer-wordmark {
  font-size: 3.5rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.04em;
  line-height: 1; margin: 0 0 2rem; color: var(--text);
}
@media (min-width: 768px) { .footer-wordmark { font-size: 6rem; } }

.footer-tagline {
  color: var(--text-muted); font-size: 1.125rem;
  max-width: 28rem; line-height: 1.75; margin: 0;
}
.footer-meta {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 640px) { .footer-meta { grid-template-columns: 1fr 1fr; } }

.footer-label {
  font-size: 0.875rem; font-weight: 700;
  color: var(--text-faint); text-transform: uppercase;
  letter-spacing: 0.05em; display: block; margin-bottom: 1rem;
}
.footer-contact p { margin: 0 0 0.75rem; }
.footer-contact a:hover { color: var(--cyan); }

.social-links { display: flex; gap: 1rem; }
.social-link {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.social-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--card-border-hover);
}
.social-icon { width: 1.25rem; height: 1.25rem; }

.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--card-border);
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.copyright { color: var(--text-faint); font-size: 0.875rem; margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-faint); font-size: 0.875rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }

/* ── Lightbox ─────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transition: opacity 0.2s ease;
}
.lightbox-img.is-switching {
  opacity: 0;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--cyan);
}

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    width: 2.75rem;
    height: 2.75rem;
    top: auto;
    bottom: 3.5rem;
    transform: none;
  }
  .lightbox-prev { left: 50%; margin-left: -3.5rem; }
  .lightbox-next { right: auto; left: 50%; margin-left: 0.5rem; }
  .lightbox-img  { max-width: 95vw; max-height: 80vh; }
}

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* ── Custom cursor ───────────────────────────────────── */

/* Hide default cursor site-wide */
body, a, button { cursor: none; }

.custom-cursor {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease,
              top 0.2s ease, left 0.2s ease,
              background-color 0.2s ease,
              border-color 0.2s ease,
              opacity 0.3s ease;
  /* transform is set by JS — no transition on it so movement stays smooth */
  will-change: transform;
}

/* Grow + fill slightly when hovering links/cards */
.custom-cursor.cursor-hover {
  width: 60px;
  height: 60px;
  top: -30px;
  left: -30px;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}

/* Hide on touch devices — cursor doesn't make sense there */
@media (hover: none) {
  .custom-cursor { display: none; }
  body, a, button { cursor: auto; }
}

/* ── Scroll reveal ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
