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

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --black: #000;
  --white: #fff;
  --gray: #999;
  --header-height: 50px;
  --side-pad: 20px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-pad);
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--black);
  transition: background-color 0.3s ease;
}

.header.hover-active {
  background-color: var(--hover-bg, var(--white));
}

.logo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  padding: 4px 8px;
  display: inline-block;
  line-height: 1;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
}

.header__right a {
  transition: opacity 0.2s;
}

.header__right a:hover {
  opacity: 0.5;
}

/* Main */
.main {
  padding-top: var(--header-height);
}

.project-list {
  width: 100%;
}

/* Project Row */
.project {
  position: relative;
  border-bottom: 1px solid var(--black);
  transition: background-color 0.35s ease;
}

.project:first-child {
  border-top: none;
}

.project__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-pad);
  min-height: clamp(50px, 6vw, 90px);
  position: relative;
  overflow: hidden;
}

.project__text {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: 1;
  min-width: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project__text h2 {
  font-size: clamp(1.75rem, 5.5vw, 5.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.project__client {
  font-size: clamp(0.625rem, 1vw, 0.875rem);
  font-weight: 400;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--black);
  border-radius: 100px;
  padding: 2px 10px;
  line-height: 1.4;
}

.project__image {
  position: absolute;
  right: var(--side-pad);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  opacity: 0;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.project__image img {
  width: 100%;
  height: auto;
  max-height: clamp(50px, 6vw, 100px);
  object-fit: contain;
}

/* Hover state */
.project:hover {
  background-color: var(--project-color);
}

.project:hover .project__image {
  width: clamp(60px, 10vw, 150px);
  opacity: 1;
}

/* Footer */
.footer {
  border-top: 1px solid var(--black);
  padding: 12px var(--side-pad);
}

.footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer a {
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 0.5;
}

.footer__sep {
  margin: 0 6px;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --side-pad: 12px;
    --header-height: 44px;
  }

  .project__text h2 {
    font-size: clamp(1.25rem, 7vw, 2.5rem);
  }

  .project__link {
    min-height: 44px;
  }

  .project__client {
    font-size: 0.5rem;
    padding: 1px 6px;
  }

  .project:hover .project__image {
    width: 50px;
  }

  .header__right {
    gap: 12px;
    font-size: 0.75rem;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: var(--black);
  color: var(--white);
}
