:root {
  --sidebar-width: 400px;
  --ink: #111111;
  --muted: #555555;
  --bg: #e6e7e8;
  --line: #111111;
  --placeholder-bg: #f0f0f0;
  --accent: #e790bd;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  line-height: 1.55;
}

.arrow { display: inline-block; }

/* Sidebar */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wordmark-wrap {
  overflow: visible;
  margin-bottom: 28px;
}

.wordmark-svg {
  display: block;
  width: 84%;
  height: auto;
  overflow: visible;
}

.wordmark-main {
  transform-origin: top;
  will-change: transform;
}

.wordmark-spacer {
  height: 0px;
}

.intro {
  max-width: 320px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.intro .arrow {
  margin-right: 4px;
}

.hover-preview {
  position: relative;
  text-decoration: underline solid;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.preview-img {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 90px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.2);
  z-index: 20;
}

.preview-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-preview:hover .preview-img {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 13px;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--ink);
}

.nav a.current {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--ink);
}

.badge {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Main content */

.main {
  margin-left: var(--sidebar-width);
  padding: 48px 56px 120px;
}

.section {
  padding-bottom: 96px;
}

.project {
  padding-bottom: 72px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 72px;
}

.project:last-child {
  border-bottom: none;
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.project-title-wrap {
  max-width: 340px;
}

.project-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}

.project-title-wrap .tags {
  margin-top: 12px;
}

.project-meta {
  max-width: 420px;
  flex: 1;
  min-width: 260px;
}

.year {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.desc {
  margin: 0 0 10px;
  color: var(--muted);
}

.tags {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.media-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.media-grid.two-col,
.media-grid.col-2 {
  grid-template-columns: 1fr 1fr;
}

.media-grid.col-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.placeholder-img {
  background: var(--placeholder-bg);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  background-image: linear-gradient(45deg, transparent 49.5%, #d8d8d8 49.5%, #d8d8d8 50.5%, transparent 50.5%),
                     linear-gradient(-45deg, transparent 49.5%, #d8d8d8 49.5%, #d8d8d8 50.5%, transparent 50.5%);
}

.placeholder-img span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #999;
}

.placeholder-img.wide { aspect-ratio: 8 / 5; }
.placeholder-img.tall { aspect-ratio: 3 / 4; max-width: 640px; }

/* Work feed (index) */

.work-feed {
  padding-bottom: 40px;
}

.work-block {
  margin-bottom: 16px;
}

.work-item {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
}

.real-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thumb-zoom {
  transform: scale(1.18);
}

.thumb-shift-right {
  object-position: 62% center;
}

.collage-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.84px;
  padding: 28px 40px;
  text-align: center;
  background: rgba(17, 17, 17, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  pointer-events: none;
}

.work-item:hover .hover-overlay {
  opacity: 1;
  background: rgba(231, 144, 189, 0.72);
}

.overlay-title {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.2;
  max-width: 70%;
}

.overlay-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overlay-arrow {
  color: var(--ink);
  font-size: 13px;
  flex-shrink: 0;
}

.overlay-client {
  color: var(--ink);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Photo collage (project detail pages) */

.collage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Project detail pages */

.back-link {
  display: inline-block;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 40px;
}

.back-link:hover { opacity: 0.6; }

/* About / Contact */

.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.about-main {
  flex: 1;
  min-width: 0;
}

.about-photo-col {
  flex-shrink: 0;
  width: 193px;
  position: sticky;
  top: 48px;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.about-text {
  max-width: 560px;
  color: var(--ink);
  margin: 0 0 16px;
}

.section.about .about-text {
  margin-bottom: 48px;
}

.cv-block {
  max-width: 640px;
  margin: 0 0 44px;
}

.cv-heading {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}

.cv-entry {
  margin-bottom: 22px;
}

.cv-entry:last-child {
  margin-bottom: 0;
}

.cv-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cv-role {
  font-weight: 600;
}

.cv-org {
  display: inline-block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cv-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
}

.cv-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.cv-bullets li {
  margin-bottom: 2px;
}

.cv-bullets.achievements {
  list-style: none;
  padding-left: 0;
}

.cv-bullets.achievements li {
  margin-bottom: 18px;
}

.cv-bullets.achievements li:last-child {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lang-list {
  max-width: 360px;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #d4d4d4;
  font-size: 13px;
}

.lang-row:last-child {
  border-bottom: none;
}

.lang-level {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

.contact-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1.5px solid transparent;
}

.contact-list a:hover {
  border-bottom-color: var(--accent);
}

.contact-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-width: 90px;
}

.footer {
  color: var(--muted);
  font-size: 13px;
  margin-top: 48px;
}

/* Custom cursor */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a, .work-item {
    cursor: none;
  }

  .custom-cursor {
    display: block;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 40px;
    padding: 32px 24px;
  }

  .main {
    margin-left: 0;
    padding: 0 24px 80px;
  }

  .wordmark-main { transform: none !important; }
  .wordmark-spacer { height: 0 !important; }

  .project-head {
    flex-direction: column;
    gap: 16px;
  }

  .media-grid.two-col {
    grid-template-columns: 1fr;
  }

  .about-layout {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .about-photo-col {
    width: 100%;
    max-width: 320px;
    position: static;
  }
}
