/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080a0f;
  --surface: #0e1118;
  --surface-2: #161b26;
  --border: rgba(255,255,255,0.07);
  --text: #e8eaf0;
  --muted: #6b7280;
  --accent: #7fffb2;
  --accent-dim: rgba(127,255,178,0.12);
  --accent-glow: rgba(127,255,178,0.25);
  --font-head: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s;
  left: var(--cx, -100px);
  top: var(--cy, -100px);
}

/* ─── NOISE ─────────────────────────────────────────────── */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ─── GRID BG ────────────────────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

/* ─── ORBS ───────────────────────────────────────────────── */
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(127,255,178,0.08) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: orb-drift 20s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,130,255,0.07) 0%, transparent 70%);
  bottom: 20%; left: -100px;
  animation: orb-drift 25s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,200,100,0.05) 0%, transparent 70%);
  bottom: 0; right: 20%;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, 40px); }
}

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  background: rgba(8,10,15,0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  animation: fade-down 0.6s ease both;
}

.nav-logo {
  display: flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--text);
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent); color: #000;
  font-weight: 800; font-size: 16px; border-radius: 6px;
}
.logo-mark.small { width: 22px; height: 22px; font-size: 11px; border-radius: 4px; margin-right: 8px; }
.logo-hq { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent-dim) !important;
  border: 1px solid rgba(127,255,178,0.2) !important;
  color: var(--accent) !important;
  padding: 8px 18px; border-radius: 40px;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: var(--accent-glow) !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 48px 80px;
  max-width: 1200px; margin: 0 auto;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--accent); letter-spacing: 0.06em;
  margin-bottom: 32px;
  animation: fade-up 0.6s 0.2s ease both;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.hero-title .line {
  display: block;
  animation: fade-up 0.7s ease both;
}
.hero-title .line:nth-child(1) { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) { animation-delay: 0.45s; }
.hero-title .line:nth-child(3) { animation-delay: 0.6s; }
.accent { color: var(--accent); }

.hero-sub {
  font-family: var(--font-mono); font-size: 15px; font-weight: 300;
  color: var(--muted); line-height: 1.7; max-width: 480px;
  margin-bottom: 48px;
  animation: fade-up 0.7s 0.7s ease both;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 80px;
  animation: fade-up 0.7s 0.85s ease both;
}

.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #000;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 40px; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 40px; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.hero-stats {
  display: flex; align-items: center; gap: 32px;
  animation: fade-up 0.7s 1s ease both;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 36px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--text);
}
.stat-num::after { content: '+'; color: var(--accent); font-size: 24px; }
.stat-label {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.04em;
}
.stat-divider {
  width: 1px; height: 48px;
  background: var(--border);
}

/* ─── MARQUEE ────────────────────────────────────────────── */
.marquee-wrap {
  position: relative; z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 0;
}
.marquee-track {
  display: flex; gap: 40px; align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 24s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sep { color: var(--accent) !important; font-size: 10px !important; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── ABOUT ──────────────────────────────────────────────── */
.about {
  position: relative; z-index: 2;
  padding: 120px 48px;
  max-width: 1200px; margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.12em;
  margin-bottom: 48px;
}

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.03em;
}
.section-title em { font-style: italic; color: var(--accent); }

.about-right p {
  font-family: var(--font-mono); font-size: 15px; font-weight: 300;
  color: var(--muted); line-height: 1.8; margin-bottom: 20px;
}

.capabilities { margin-top: 40px; display: flex; flex-direction: column; gap: 0; }
.cap-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px; font-weight: 600;
  transition: color 0.2s;
}
.cap-item:hover { color: var(--accent); }
.cap-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted);
}

/* ─── WORK ───────────────────────────────────────────────── */
.work {
  position: relative; z-index: 2;
  padding: 80px 48px 120px;
  max-width: 1200px; margin: 0 auto;
}

.work > .section-title { margin-bottom: 48px; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.work-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}
.work-card--large {
  grid-column: 1 / -1;
}

.work-card-inner {
  position: relative; overflow: hidden;
  padding: 40px;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.work-card--large .work-card-inner { min-height: 320px; }

.work-card-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%,
    hsl(var(--hue), 70%, 25%) 0%,
    transparent 60%);
  opacity: 0.4;
  transition: opacity 0.3s;
}
.work-card:hover .work-card-bg { opacity: 0.6; }

.work-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: auto; padding-bottom: 40px;
}
.work-tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em;
  border: 1px solid var(--accent-dim);
  background: var(--accent-dim);
  padding: 4px 10px; border-radius: 20px;
}
.work-year {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}

.work-card h3 {
  font-size: 24px; font-weight: 700; margin-bottom: 8px; position: relative;
}
.work-card--large h3 { font-size: 32px; }
.work-card p {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  line-height: 1.6; margin-bottom: 20px; position: relative;
}
.work-link {
  color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600;
  position: relative; letter-spacing: 0.02em;
  transition: gap 0.2s;
}
.work-link:hover { text-decoration: underline; }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact {
  position: relative; z-index: 2;
  padding: 80px 48px 120px;
  max-width: 1200px; margin: 0 auto;
}

.contact-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.contact-inner::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
  margin-bottom: 20px;
}

.contact-sub {
  font-family: var(--font-mono); font-size: 15px; font-weight: 300;
  color: var(--muted); margin-bottom: 48px;
}

.contact-cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(18px, 2.5vw, 28px); font-weight: 700;
  color: var(--text); text-decoration: none;
  padding: 20px 40px;
  border: 1px solid var(--border);
  border-radius: 60px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.contact-cta:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 40px var(--accent-glow);
  color: var(--accent);
}
.cta-arrow {
  font-size: 1.4em; line-height: 1;
  transition: transform 0.3s;
}
.contact-cta:hover .cta-arrow { transform: translate(4px, -4px); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}
.footer-left { display: flex; align-items: center; gap: 4px; }
.footer-right { display: flex; gap: 24px; }
.footer-right a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-right a:hover { color: var(--text); }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 120px 24px 60px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 28px; }
  .about, .work, .contact { padding-left: 24px; padding-right: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--large { grid-column: auto; }
  .contact-inner { padding: 48px 24px; }
  .footer { flex-direction: column; gap: 16px; text-align: center; }
}