:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --accent: #ff2d6f;
  --accent-2: #00e5ff;
  --accent-3: #a855f7;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-3), var(--accent-2));
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.85rem;
  z-index: 200;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* Cursor follower */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 111, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  mix-blend-mode: screen;
}

/* Noise texture overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  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-repeat: repeat;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  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: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5rem 5rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 450px;
  line-height: 1.7;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 45, 111, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Hero visual side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 111, 0.15), rgba(168, 85, 247, 0.1), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.brands-orbit {
  position: relative;
  width: 400px;
  height: 400px;
}

.brand-item {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  opacity: 0.7;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.brand-item:hover {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.1);
}

.brand-item.large {
  font-size: 2rem;
}

.brand-item.medium {
  font-size: 1.4rem;
}

.brand-item.small {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== SECTIONS ===== */
.section {
  padding: 8rem 5rem;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ===== WORK GRID ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.work-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 45, 111, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 45, 111, 0.05);
}

.work-card-image {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-card-logo {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.work-card:hover .work-card-logo {
  opacity: 1;
}

.work-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-elevated), transparent);
}

.work-card-body {
  padding: 1.5rem 2rem 2rem;
}

.work-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1rem;
  position: relative;
}

.tag-editorial {
  color: var(--accent);
  border: 1px solid rgba(255, 45, 111, 0.3);
}

.tag-media {
  color: var(--accent-2);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.tag-commercial {
  color: var(--accent-3);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.work-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.work-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.work-card-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}

/* Card accent colors for image areas */
.card-bg-1 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.card-bg-2 { background: linear-gradient(135deg, #1a0a0a, #2d1f1f); }
.card-bg-3 { background: linear-gradient(135deg, #0a1a1a, #1f2d2d); }
.card-bg-4 { background: linear-gradient(135deg, #1a0a2e, #2d1f3e); }
.card-bg-5 { background: linear-gradient(135deg, #0f1a0a, #1f2d1f); }
.card-bg-6 { background: linear-gradient(135deg, #1a1a0a, #2d2d1f); }

/* ===== NOW / THEN SECTION ===== */
.now-then {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 6rem 5rem;
  position: relative;
}

.now-then::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 45, 111, 0.3), transparent);
}

.now-block, .then-block {
  position: relative;
}

.now-block .section-eyebrow {
  color: var(--accent-2);
}

.now-block .section-eyebrow::before {
  background: var(--accent-2);
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.brand-entry {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.brand-entry:hover {
  border-color: rgba(255, 45, 111, 0.2);
  transform: translateX(8px);
}

.brand-entry-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-entry-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat {
  padding: 3rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: 4rem 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.footer-right a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-right a:hover {
  color: var(--accent);
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 10rem 5rem 5rem;
}

.about-content {
  max-width: 700px;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ===== CONTACT ===== */
.contact-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 5rem 5rem;
}

.contact-content {
  max-width: 600px;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-top: 2rem;
  transition: opacity 0.3s;
}

.contact-email:hover {
  opacity: 0.8;
}

/* ===== SCROLL ANIMATIONS (only when JS is active) ===== */
.js-animations .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.js-animations .reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.js-animations .reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.js-animations .reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.js-animations .reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* ===== FEATURED WORK CARD ===== */
.work-card.featured {
  border-color: rgba(255, 45, 111, 0.15);
  box-shadow: 0 0 30px rgba(255, 45, 111, 0.05);
}

.work-card.featured .work-card-tag::after {
  content: 'Featured';
  margin-left: 0.5rem;
  opacity: 0.6;
}

/* ===== UTILITY CLASSES ===== */
.link-accent {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.text-body-muted {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-eyebrow--centered {
  justify-content: center;
}

.section-eyebrow--centered::before {
  display: none;
}

.section--top-padded {
  padding-top: 10rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: all 0.4s ease;
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== PROSE CONTENT (privacy, etc.) ===== */
.prose-content {
  max-width: 700px;
}

.prose-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ===== SCROLL REVEAL (JS FALLBACK) ===== */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section, .now-then {
    padding: 5rem 3rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 8rem 3rem 4rem;
  }

  .hero-visual {
    height: 50vh;
  }

  .now-then {
    grid-template-columns: 1fr;
  }

  .now-then::before {
    display: none;
  }

  .nav {
    padding: 1.2rem 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .section, .footer {
    padding: 4rem 1.5rem;
  }

  .hero-content {
    padding: 7rem 1.5rem 3rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .footer {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-animations .reveal,
  .js-animations .reveal-left,
  .js-animations .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-cta {
    opacity: 1;
    animation: none;
  }
}
