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

:root {
  --bg: #080808;
  --text: #ffffff;
  --muted: #777777;
  --subtle: #4a4a4a;
  --dim: #2a2a2a;
  --border: #171717;
  --accent-bg: #ffffff;
  --accent-text: #000000;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lineReveal {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.animate-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.logo {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  animation: fadeIn 0.6s ease 0.1s both;
}

.nav-links {
  display: flex;
  gap: 32px;
  animation: fadeIn 0.6s ease 0.2s both;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

/* Hero */
.hero {
  padding-top: 100px;
  padding-bottom: 160px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 720px;
  animation-delay: 0.15s;
}

.hero p {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  margin-top: 36px;
  animation-delay: 0.3s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 52px;
  padding: 15px 32px;
  background: var(--accent-bg);
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  letter-spacing: 0.3px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
  animation-delay: 0.45s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
}

.hero-cta::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.hero-cta:hover::after {
  transform: translateX(3px);
}

/* Page Header (for inner pages) */
.page-header {
  padding-top: 100px;
  padding-bottom: 80px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 600px;
  animation-delay: 0.15s;
}

.page-header p {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
  margin-top: 24px;
  animation-delay: 0.3s;
}

/* Page Content */
.page-content {
  padding-bottom: 120px;
}

.page-content p {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 24px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-top: 64px;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.page-content h2:first-child {
  margin-top: 48px;
}

.page-content h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.page-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.page-content li {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.page-content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--subtle);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  transform-origin: left center;
  animation: lineReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.divider-delayed {
  animation-delay: 1.2s;
}

/* Services Grid */
.services {
  padding-top: 100px;
  padding-bottom: 120px;
}

.services-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 72px;
  animation-delay: 0.6s;
}

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

.service-item {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.service-item:nth-child(1) { animation-delay: 0.7s; }
.service-item:nth-child(2) { animation-delay: 0.82s; }
.service-item:nth-child(3) { animation-delay: 0.94s; }
.service-item:nth-child(4) { animation-delay: 1.06s; }

.service-number {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.service-item p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}

/* Services Page Detailed Cards */
.service-detail {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: 0;
  letter-spacing: -0.3px;
}

.service-detail p {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 16px;
}

.service-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-detail li {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.service-detail li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--subtle);
}

/* Contact Info */
.contact-info {
  padding-top: 40px;
}

.contact-block {
  margin-bottom: 48px;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 16px;
}

.contact-value {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
}

.contact-value a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value a:hover {
  color: var(--muted);
}

/* Footer */
footer {
  padding-top: 64px;
  padding-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-copy,
.footer-address {
  font-size: 13px;
  font-weight: 300;
  color: var(--subtle);
  letter-spacing: 0.3px;
}

.footer-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text);
}

/* Responsive: Tablet */
@media (max-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  nav {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .nav-links {
    gap: 24px;
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 100px;
  }

  .hero p {
    font-size: 16px;
  }

  .page-header {
    padding-top: 72px;
    padding-bottom: 60px;
  }

  .services {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .footer-right {
    align-items: flex-start;
  }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-label {
    margin-bottom: 48px;
  }
}
