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

:root {
  --bg: #040612;
  --text-primary: #f0f0f0;
  --text-muted: #888;
  --border: #1e1e1e;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

.nav-logo {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 200ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
}

.case-study-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 48px 120px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 80px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.back-link::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: '';
  transition: width 200ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text-primary);
}

.back-link:hover::before,
.back-link:focus-visible::before {
  width: 36px;
}

.case-study-header {
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.case-study-category {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-study-title {
  color: var(--text-primary);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.case-study-row {
  display: grid;
  grid-template-columns: 30% 70%;
  align-items: baseline;
  min-height: 320px;
  scroll-margin-top: 100px;
}

.case-study-row > * {
  min-width: 0;
}

.case-study-lead {
  max-width: 720px;
  color: var(--text-primary);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.case-study-placeholder {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.case-study-placeholder > span {
  color: rgba(240, 240, 240, 0.45);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  nav {
    padding: 20px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .case-study-page {
    padding: 120px 24px 80px;
  }

  .case-study-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 32px;
  }

}
