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

:root {
  --black: #0a0a0a;
  --white: #f5f5f3;
  --mid: #888;
  --nav-w: 220px;
}

html, body {
  height: 100%;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  grid-template-rows: 100vh;
  overflow: hidden;
}

/* ── Sidebar ── */
aside {
  display: flex;
  flex-direction: column;
  padding: 48px 32px;
  border-right: 1px solid rgba(0,0,0,0.12);
  overflow-y: auto;
}

.logo-wrap {
  width: 120px;
  height: 120px;
  overflow: hidden;
  margin-bottom: 48px;
  flex-shrink: 0;
}

.logo-wrap img {
  width: 160%;
  height: 160%;
  object-fit: cover;
  object-position: center center;
  margin-left: -30%;
  margin-top: -30%;
  filter: contrast(1.1);
  mix-blend-mode: multiply;
}

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

nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  position: relative;
}

nav a::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  width: 20px;
  height: 1px;
  background: var(--black);
  transition: transform 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--black);
}

nav a:hover::before,
nav a.active::before {
  transform: translateY(-50%) scaleX(1);
}

nav a.active {
  border-bottom-color: var(--black);
}

/* ── Main content ── */
main {
  overflow-y: auto;
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 32px;
}

.body-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
  max-width: 52ch;
  margin-bottom: 48px;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--black);
  margin-bottom: 48px;
}

/* ── Mobile ── */
@media (max-width: 680px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow: auto;
    height: auto;
  }

  aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 24px 24px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    gap: 16px;
  }

  .logo-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 24px;
  }

  nav a::before { display: none; }

  main {
    padding: 48px 24px;
    justify-content: flex-start;
  }
}

.nav-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bbb;
  padding: 10px 0 6px;
  margin-top: 8px;
}
