:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  --bg: #000000;
  --bg-secondary: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);

  --container-max: 1320px;
  --container-narrow: 840px;
  --section-padding: 120px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

body::before {
  content: '';
  position: fixed;
  inset: -300px;
  background:
    radial-gradient(900px 700px at 30% 20%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(1000px 800px at 70% 40%, rgba(255,255,255,0.04), transparent 65%),
    radial-gradient(800px 600px at 50% 90%, rgba(255,255,255,0.03), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

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

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

/* ── Layout ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: var(--container-narrow);
}

/* ── Header ── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: transform var(--transition-base);
}

.header.scroll-down { transform: translateY(-100%); }
.header.scroll-up   { transform: translateY(0); }

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  transition: opacity var(--transition-fast);
}

.logo:hover { opacity: 0.7; }

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 1.5px solid rgba(255,255,255,0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark .bubble {
  position: absolute;
  width: 22px;
  height: 20px;
  border-radius: 10px;
  border: 2.5px solid var(--white);
}

.logo-mark .smile {
  position: absolute;
  width: 16px;
  height: 8px;
  bottom: 12px;
  border-bottom: 2.5px solid var(--white);
  border-radius: 0 0 18px 18px;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-links a:not(.btn-primary):hover::after { transform: scaleX(1); }

/* ── Mobile Toggle ── */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
  display: block;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.mobile-menu a {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  border-radius: var(--radius-sm);
}

.mobile-menu a:hover { color: var(--text-primary); }

.mobile-menu a.btn-primary {
  background: var(--white);
  color: var(--black);
  text-align: center;
  margin-top: 8px;
  padding: 14px 16px;
}

.mobile-menu a.btn-primary:hover {
  background: var(--gray-200);
  color: var(--black);
}

/* ── Buttons ── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #e9e9e9 100%);
  color: var(--black);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 55px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(255,255,255,0.10);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
}

.btn-primary.large,
.btn-secondary.large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ── Section Base ── */
.section { padding: var(--section-padding) 0; }

.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
}

.section-header.centered .section-description { margin: 0 auto; }

/* ── Hero ── */
.hero {
  padding: 200px 0 120px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  font-size: 14px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--white), var(--gray-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Stats Bar ── */
.stats-bar {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white), var(--gray-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.stat-source {
  font-size: 11px;
  color: var(--text-tertiary);
  opacity: 0.55;
  font-style: italic;
}

/* ── Philosophy ── */
.philosophy { background: var(--bg-secondary); }

.philosophy-content {
  max-width: 700px;
  margin: 0 auto;
}

.philosophy-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.philosophy-content p:last-child { margin-bottom: 0; }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.04);
}

.service-card:hover::before { opacity: 1; }

.service-number {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.service-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ── Work / Reference ── */
.work-section { background: var(--bg-secondary); }

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

.work-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.work-card.large { grid-column: 1 / -1; }

.work-image {
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.work-content { padding: 32px; }

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.work-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.work-stat {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.work-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.work-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Approach ── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.approach-step {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-base);
}

.approach-step:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
}

.step-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Credentials ── */
.credentials-section { background: var(--bg-secondary); }

.credentials-content {
  max-width: 760px;
  margin: 0 auto;
}

.brands-worked-with {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.brand-badge {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand-badge:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.06);
  transform: translateY(-3px);
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.brand-name {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.cred-details {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.cred-section h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.cred-section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── CTA ── */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}

.pricing-note {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  margin-bottom: 40px;
  display: inline-block;
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.contact-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
}

.contact-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.contact-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.contact-card a.contact-value:hover { color: var(--text-secondary); }

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: 120px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ── Fade-in animation ── */
.fade-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: tablet ── */
@media (max-width: 1024px) {
  :root { --section-padding: 100px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-details { grid-template-columns: 1fr; gap: 24px; }
  .brands-worked-with { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive: mobile ── */
@media (max-width: 768px) {
  :root { --section-padding: 80px; }

  .nav-links { display: none; }
  .mobile-toggle { display: flex; }

  .hero { padding: 160px 0 80px; }
  .hero-title { font-size: 40px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary { width: 100%; }

  .stats-grid { grid-template-columns: 1fr; gap: 24px; }

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

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

  .contact-options { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn-primary { width: 100%; }

  .footer-content { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Responsive: small mobile ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-container { padding: 0 16px; height: 70px; }
  .hero { padding: 140px 0 60px; }
  .section-title { font-size: 32px; }
  .hero-subtitle { font-size: 18px; }
  .brands-worked-with { grid-template-columns: repeat(2, 1fr); }
}
