/* 
    HEADER REDESIGN — EXPAND/COLLAPSE PROJECTS
    Brand at top, menu below with expand/collapse toggle
    Smooth animation on expand/collapse
*/

.site-header {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 99999;
  pointer-events: auto;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  min-width: 280px;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-header__brand-link {
  text-decoration: none;
  color: inherit;
}

.site-header__brand-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: #000000;
  margin: 0;
  line-height: 1.2;
}

.site-header__brand-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: #000000;
  margin: 0;
  line-height: 1.2;
}

/* Navigation Menu */
.site-header__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  position: relative;
  border-top: 1px solid #d0d0d0;
  padding-top: 12px;
  margin-top: 12px;
}

/* Creative Journal item with expand/collapse button */
.site-header__nav-item-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__nav-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #000000;
  margin: 0;
}

.site-header__nav-toggle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #000000;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 300ms ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__nav-toggle:hover {
  color: #666666;
}

.site-header__nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 300ms ease;
  display: block;
  text-align: left;
}

.site-header__nav-link:hover {
  color: #666666;
}

/* Projects List */
.site-header__projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: 0;
  padding-left: 12px;
  border-left: 1px solid #d0d0d0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 400ms cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 400ms ease,
              padding 400ms ease,
              margin 400ms ease;
}

.site-header__projects-list.is-open {
  max-height: 500px;
  opacity: 1;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Project items */
.site-header__project-item {
  display: block;
  padding: 8px 8px;
  color: #000000;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-decoration: none;
  line-height: 0.8;
  cursor: pointer;
  transition: all 300ms ease;
  margin: 0 -8px;
  background: transparent;
  border: none;
}

.site-header__project-item:hover {
  background: #f0f0f0;
  color: #000000;
}

.site-header__project-arrow {
  opacity: 0;
  transition: opacity 300ms ease;
  margin-left: 2px;
  display: inline;
}

.site-header__project-item:hover .site-header__project-arrow {
  opacity: 1;
}

body {
  background: #000000;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 5px;
    left: 5px;
    right: 5px;
    padding: 5px;
    min-width: auto;
    width: auto;
    max-width: calc(100% - 10px);
  }

  .site-header__brand-name {
    font-size: 10px;
  }

  .site-header__brand-role {
    font-size: 8px;
  }

  .site-header__nav-label {
    font-size: 9px;
  }

  .site-header__nav-toggle {
    font-size: 9px;
  }

  .site-header__nav-link {
    font-size: 9px;
  }

  .site-header__project-item {
    font-size: 9px;
  }
}