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

:root {
  --black:    #1c1c1e;
  --white:    #e2e2e2;
  --off-white: #eaeaea;
  --accent:   #e8470a;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --pad:      clamp(80px, 12vw, 160px);
  --side:     clamp(24px, 5vw, 80px);
  --nav-h:    64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Nav ─────────────────────────────────────── */

#nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

#nav.scrolled {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  //max-width: 1280px;
  max-width: calc(1200px + 2 * var(--side));
  margin: 0 auto;
  padding: 0 var(--side);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.25s;
}

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

/* ─── Hero ────────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--nav-h) var(--side) clamp(80px, 10vw, 140px);
  background: var(--black);
  position: relative;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  //color: rgba(255,255,255,0.3);
  color: rgb(226 226 226 / 60%);
  margin-bottom: 28px;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.hero-headline {
  font-size: clamp(60px, 9vw, 128px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 36px;
  animation: heroFadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}

.hero-sub {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  //color: rgba(255,255,255,0.25);
  color: rgb(226 226 226 / 60%);
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.65s;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 1.1s;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.9; }
}

/* ─── Stats ───────────────────────────────────── */

#stats {
  background: var(--off-white);
  color: var(--black);
  padding: clamp(80px, 12vw, 140px) var(--side);
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 0 48px;
  border-right: 1px solid rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.stat:nth-child(1) { transition-delay: 0ms; }
.stat:nth-child(2) { transition-delay: 100ms; }
.stat:nth-child(3) { transition-delay: 200ms; }
.stat:nth-child(4) { transition-delay: 300ms; }

.stat:first-child { padding-left: 0; }
.stat:last-child  { border-right: none; padding-right: 0; }

.stat-value {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.stat-number {
  font-size: clamp(52px, 6.5vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--black);
}

.stat-suffix {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--black);
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
  margin-top: 14px;
}

/* ─── Expertise ───────────────────────────────── */

#expertise {
  background: var(--black);
  padding: var(--pad) var(--side);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  //color: rgba(255,255,255,0.25);
  color: rgb(226 226 226 / 60%);
  margin-bottom: 56px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0s;
}

.section-label.visible::after {
  transform: scaleX(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

#approach .section-label,
#clients .section-label {
  color: rgba(0,0,0,0.3);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.expertise-item {
  padding: 48px 40px 48px 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.4s ease, opacity 0.9s ease, transform 0.9s ease;
}

.expertise-item:hover {
  background: rgba(255,255,255,0.03);
  transition-delay: 0ms;
}

.expertise-item:first-child { padding-left: 0; }
.expertise-item:last-child  { border-right: none; padding-right: 0; }

.expertise-item:not(:first-child) { padding-left: 40px; }

.expertise-item h3 {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.expertise-item p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  //color: rgba(255,255,255,0.4);
  color: rgb(226 226 226 / 60%);
}

/* stagger expertise cards */
.expertise-item:nth-child(1) { transition-delay: 0ms; }
.expertise-item:nth-child(2) { transition-delay: 80ms; }
.expertise-item:nth-child(3) { transition-delay: 160ms; }
.expertise-item:nth-child(4) { transition-delay: 240ms; }

/* ─── Approach ────────────────────────────────── */

#approach {
  background: var(--off-white);
  color: var(--black);
  padding: var(--pad) var(--side);
}

#approach .container { max-width: 1000px; }

.approach-headline {
  font-size: clamp(64px, 10vw, 136px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 48px;
}

.approach-body {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(0,0,0,0.45);
  max-width: 560px;
}

/* ─── Clients ─────────────────────────────────── */

#clients {
  background: var(--off-white);
  color: var(--black);
  padding: clamp(60px, 8vw, 100px) var(--side);
  border-top: 1px solid rgba(0,0,0,0.07);
}

.clients-list {
  display: flex;
  align-items: center;
  gap: 64px;
}

.clients-list span {
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(0,0,0,0.2);
  transition: color 0.4s;
  cursor: default;
}

.clients-list span:hover { color: rgba(0,0,0,0.65); }

/* ─── Footer ──────────────────────────────────── */

footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px var(--side);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
}

.footer-info {
  display: flex;
  gap: 36px;
}

.footer-info span,
.footer-info a {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  //color: rgba(255,255,255,0.35);
  color: rgb(226 226 226 / 60%);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-info a:hover { color: var(--white); }

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  //color: rgba(255,255,255,0.18);
  color: rgb(226 226 226 / 60%);
}

/* ─── Fade-in ─────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ─── Responsive ──────────────────────────────── */

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 0;
  }
  .stat { border-right: none; padding: 0 0 0 0; }
  .stat:nth-child(odd)  { padding-right: 40px; border-right: 1px solid rgba(0,0,0,0.1); }
  .stat:nth-child(even) { padding-left: 40px; }

  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-item { padding: 40px 32px !important; }
  .expertise-item:nth-child(even) { border-right: none !important; }
  .expertise-item:nth-child(3),
  .expertise-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.06); }

  .clients-list { gap: 40px; }
  .footer-inner { flex-direction: column; gap: 28px; text-align: center; }
  .footer-info  { flex-direction: column; gap: 12px; align-items: center; }
}

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

  .stats-grid { grid-template-columns: 1fr; gap: 48px; }
  .stat { border-right: none !important; padding: 0 !important; }

  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-item {
    padding: 36px 0 !important;
    border-right: none !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
  }
  .expertise-item:first-child { border-top: none !important; }

  .clients-list { flex-direction: column; align-items: flex-start; gap: 24px; }
}
