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

:root {
  --green: #50C878;
  --blue: #0F52BA;
  --purple: #9966CC;
  --bg: #0a0a0a;
  --bg-card: #111113;
  --bg-card-hover: #18181b;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --border: #27272a;
  --green-glow: rgba(80, 200, 120, 0.15);
  --blue-glow: rgba(15, 82, 186, 0.15);
  --purple-glow: rgba(153, 102, 204, 0.15);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

::selection {
  background: var(--purple);
  color: #fff;
}

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
}
body:hover .cursor-glow { opacity: 1; }

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
nav.scrolled { border-bottom-color: var(--border); }

.nav-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero h1 .invisible-text {
  color: rgba(255, 255, 255, 0.2);
  filter: blur(3px);
  transition: all 0.6s ease;
  display: inline-block;
}

.hero h1 .invisible-text:hover {
  color: #fff;
  filter: blur(0px);
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--green), var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 14px 28px;
  background: var(--green);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.8s forwards;
  width: fit-content;
}

.hero-cta:hover {
  background: #6ad990;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(80, 200, 120, 0.3);
}

.hero-cta svg { transition: transform 0.3s ease; }
.hero-cta:hover svg { transform: translateX(4px); }

/* ============================================
   SECTION DEFAULTS
   ============================================ */
section {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}

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

.about-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  max-width: 320px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  pointer-events: none;
}

.about-content { padding-top: 20px; }

.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-text:first-of-type {
  font-size: 22px;
  color: var(--text);
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ============================================
   CLIENT LOGOS
   ============================================ */
.clients {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.clients-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 40px;
}

.logo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px 56px;
  text-align: center;
}

.logo-strip span {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.3s ease;
  cursor: default;
}

.logo-strip span:hover { color: var(--text); }

/* ============================================
   WORK / CASE STUDIES
   ============================================ */
.work-intro {
  max-width: 640px;
  margin-bottom: 64px;
}

.work-intro p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
}

.case-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.case-card.featured { grid-column: span 2; }
.case-card.featured .case-image { height: 400px; }

.case-image {
  height: 320px;
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-card:hover .case-image img { transform: scale(1.05); }

.case-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

/* Scrolling names ticker */
.names-ticker {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.names-ticker-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: tickerScroll 15s linear infinite;
}

.names-ticker-track span {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}

.names-ticker::before,
.names-ticker::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}

.names-ticker::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-card), transparent);
}

.names-ticker::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.case-card:hover .names-ticker-track { animation-play-state: paused; }

/* Word cloud for NW Mutual */
.word-cloud {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.word-cloud span {
  position: absolute;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: rgba(255, 255, 255, var(--opacity, 0.5));
  white-space: nowrap;
  animation: cloudFloat 8s ease-in-out infinite;
}

.case-card:hover .word-cloud span { animation-play-state: paused; }

@keyframes cloudFloat {
  0% { transform: translate(0, 0) rotate(-3deg); opacity: var(--o1, 0.3); }
  33% { transform: translate(8px, -15px) rotate(1deg); opacity: var(--o2, 0.6); }
  66% { transform: translate(-6px, -25px) rotate(-1deg); opacity: var(--o1, 0.3); }
  100% { transform: translate(4px, -12px) rotate(2deg); opacity: var(--o2, 0.6); }
}

@keyframes tickerScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-33.33%); }
}

.case-body { padding: 28px; }

.case-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.case-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--purple-glow);
  color: var(--purple);
}

.case-tag.green { background: var(--green-glow); color: var(--green); }
.case-tag.blue { background: var(--blue-glow); color: var(--blue); }

.case-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.case-client {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.case-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   LIGHTBOX MODAL
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox-content img.lb-active,
.lightbox-content video.lb-active {
  opacity: 1;
  position: relative;
}

.lightbox-content img:not(.lb-active),
.lightbox-content video:not(.lb-active) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1002;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1002;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  z-index: 1002;
}

/* Gallery count badge */
.gallery-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s ease;
}

.case-card:hover .gallery-badge {
  border-color: var(--green);
  color: var(--green);
}

.gallery-badge svg { flex-shrink: 0; }

/* ============================================
   APPROACH
   ============================================ */
.approach { position: relative; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
  border-radius: 16px;
  overflow: hidden;
}

.approach-card {
  background: var(--bg-card);
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.approach-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease, opacity 0.4s ease;
}

.approach-card:hover::before,
.approach-card.in-focus::before,
.approach-card.auto-played::before { transform: scaleX(1); }

.approach-card:hover,
.approach-card.in-focus { background: var(--bg-card-hover); }

.approach-card.auto-played { background: var(--bg-card-hover); }

.approach-number {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.4s ease;
}

.approach-card:hover .approach-number,
.approach-card.in-focus .approach-number,
.approach-card.auto-played .approach-number { color: var(--green); }

.approach-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.approach-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  cursor: default;
}

.marquee-dot {
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 48px;
  vertical-align: top;
}

.marquee-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  text-align: center;
  padding: 160px 40px;
}

#contact .section-heading {
  max-width: 600px;
  margin: 0 auto 24px;
}

#contact p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-link {
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-link:hover {
  border-color: var(--purple);
  background: var(--purple-glow);
  color: #fff;
}

.contact-link.linkedin { border-color: var(--blue); color: var(--blue); }
.contact-link.linkedin:hover { background: var(--blue-glow); border-color: var(--blue); color: #fff; }

.contact-link.primary { background: var(--green); border-color: var(--green); color: #0a0a0a; font-weight: 600; }
.contact-link.primary:hover { background: #6ad990; box-shadow: 0 8px 30px rgba(80, 200, 120, 0.3); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

footer span { font-size: 13px; color: var(--text-dim); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes becomeVisible {
  0% { color: rgba(255, 255, 255, 0); filter: blur(4px); }
  60% { filter: blur(2px); }
  100% { color: rgba(255, 255, 255, 1); filter: blur(0px); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  section { padding: 80px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero h1 .invisible-text {
    color: rgba(255, 255, 255, 0);
    filter: blur(0px);
    animation: becomeVisible 3s ease 1.5s forwards;
  }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-width: 400px; }
  .work-grid { grid-template-columns: 1fr; }
  .case-card.featured { grid-column: span 1; }
  .case-image { height: 220px; }
  .case-card.featured .case-image { height: 260px; }
  .approach-grid { grid-template-columns: 1fr; gap: 1px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat-number { font-size: 28px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .section-heading { font-size: 32px; }
  .nav-links { display: none; }
  .about-stats { grid-template-columns: 1fr; gap: 20px; }
  .contact-links { flex-direction: column; align-items: center; }
  .logo-strip { gap: 24px 32px; }
  .logo-strip span { font-size: 16px; }
  .marquee-item { font-size: 28px; }
  .marquee-dot { width: 32px; height: 28px; }
  .marquee-dot::after { width: 6px; height: 6px; }
}
