/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --olive: #6B7C3E;
  --pink: #E84B8A;
  --muted: #999;
  --border: #e8e8e4;
  --bg: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: default;
}

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

/* ===== LAYOUT: SIDEBAR + MAIN ===== */
.sidebar {
  width: 300px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar { display: none; }

.sidebar__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.work {
  margin-left: auto;
  margin-right: 4px;
  margin-top: 4px;
  width: calc(100% - 308px);
}

.work__column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.logo svg { display: block; }

.nav__links {
  display: flex;
  gap: 1.25rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--pink); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
}

/* ===== HEADLINE ===== */
.headline {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ===== DESCRIPTION ===== */
.description {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== CLIENTS ===== */
.clients__label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.clients__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 2px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== CTAs ===== */
.ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
  border: none;
  font-family: var(--font);
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover { background: #333; }

.btn--secondary {
  background: #f0f0ec;
  color: var(--black);
}

.btn--secondary:hover { background: #e4e4df; }

/* ===== PRICING ===== */
.pricing {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 2px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ===== SIDEBAR FOOTER ===== */
.sidebar__footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 1rem;
}

.sidebar__footer a:hover { color: var(--pink); }

.copyright { margin-left: auto; }

/* ===== WORK ITEMS ===== */
.work__item {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.work__item--split {
  background: transparent !important;
  display: flex;
  gap: 4px;
  padding: 0;
  aspect-ratio: auto;
}

.work__half {
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.work__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.work__item:hover .work__label,
.work__half:hover .work__label {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 960px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1rem 1.25rem 2rem;
  }

  .work {
    width: 100%;
    margin: 0;
    padding: 0 4px 4px;
  }

  .sidebar__content { gap: 1.5rem; }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .mobile-nav a:hover { color: var(--pink); }

  /* Hamburger to X */
  .nav__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .headline { font-size: 1.25rem; }

  .sidebar { padding: 0.75rem 1rem 1.5rem; }
  .nav { margin-bottom: 1.5rem; }
  .sidebar__content { gap: 1.25rem; }

  .work { padding: 0 2px 2px; }
  .work__column { gap: 2px; }
}
