@font-face {
  font-family: 'Mariupol Regular';
  src: url('assets/fonts/mariupol-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  background: #fff;
  line-height: 1.2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Page Layout */
.page {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  height: min-content;
  margin: 0;
  gap: 0;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: flex-start;
  background-color: #fff;
  position: relative;
  overflow: visible;
}

/* Left Content Area */
.content {
  flex: 1 0 0px;
  width: 1px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 4px 5px 4px 4px;
  position: relative;
  z-index: 1;
  background-color: #fff;
  border-right: 1px solid #f0f0f0;
}

/* Project Sections — 120px gap via margins */
.project-section {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  height: min-content;
  width: 100%;
  overflow: hidden;
  padding: 0;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  margin: 60px 0;
}

.project-section:first-child {
  margin-top: 0;
}

.project-section:last-child {
  margin-bottom: 0;
}

/* Images */
.hero-image,
.full-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
}

.hero-image img,
.full-image img,
.full-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-row {
  display: flex;
  flex-direction: row;
  gap: 4px;
  width: 100%;
}

.image-row .square-image {
  flex: 1 0 0px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
}

.square-image img,
.square-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rounded-8 {
  border-radius: 8px;
}

/* Info Row */
.info-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 8px;
  padding-bottom: 24px;
  width: 100%;
}

.info-spacer {
  flex: 1 0 0px;
  width: 1px;
  height: 100px;
}

.info-thumbnail {
  flex: 1 0 0px;
  width: 1px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
}

.info-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video {
  display: block;
  pointer-events: none;
}

video::-webkit-media-controls {
  display: none !important;
}

.info-text {
  flex: 1 0 0px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.description {
  font-size: 13px;
  color: rgb(51, 51, 51);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.2em;
}

.description a {
  color: #000;
  text-decoration: none;
}

.description a:hover {
  text-decoration: none;
}

/* Right Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 35%;
  min-width: 400px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: auto;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  background-color: #fff;
  will-change: transform;
  z-index: 1;
}

.sidebar-top {
  padding: 12px 12px 48px;
  width: 100%;
}

.bio {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #000;
  line-height: 1.2em;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nav-group {
  display: flex;
  flex-direction: column;
  padding: 0 4px;
  gap: 4px;
}

.nav-group + .nav-group {
  margin-top: 4px;
}

.nav-header {
  font-size: 13px;
  color: #000;
  padding: 6px 0 6px 8px;
}

.nav-header.experience {
  padding: 6px 0 4px 8px;
}

.nav-item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
  height: 33px;
  padding: 9px 12px 7px;
  cursor: pointer;
  font-size: 13px;
  color: #000;
  text-decoration: none;
  overflow: hidden;
  will-change: transform;
  background: rgb(242, 242, 242);
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
}

.nav-item:hover,
.nav-item.active {
  background: #000;
  color: #fff;
}

.nav-name {
  flex: 1 0 0px;
  width: 1px;
  white-space: pre-wrap;
  word-break: break-word;
}

.nav-year {
  flex: none;
  width: auto;
  letter-spacing: -0.02em;
  white-space: pre;
}

.nav-type {
  flex: none;
  text-align: right;
  width: 70px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Bottom Contact Bar */
.sidebar-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  height: 49px;
  padding: 12px;
  width: 100%;
  background-color: #fff;
  overflow: visible;
  z-index: 1;
}

.bottom-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: min-content;
  height: min-content;
}


.status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  flex: none;
  width: 6px;
  height: 6px;
}

.status-text {
  font-size: 12px;
  color: rgb(21, 171, 97);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.bottom-right {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  width: min-content;
  height: min-content;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(242, 242, 242);
  border-radius: 70px;
  padding: 4px 8px;
  font-size: 13px;
  color: #000;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.pill:hover {
  background: #e8e8e8;
}

/* =========================================
   Below desktop: column layout, fluid width
   ========================================= */
@media (max-width: 959px) {
  .page {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .content {
    border-right: none;
    border-top: 1px solid #f0f0f0;
    flex: none;
    order: 1;
    padding: 5px 4px 4px;
    width: 100%;
  }

  .sidebar {
    width: 100%;
    min-width: unset;
    height: min-content;
    position: relative;
    top: unset;
    order: 0;
  }

  .sidebar-top {
    padding: 12px 12px 0;
  }

  .sidebar-bottom {
    padding: 8px 12px 12px;
  }
}

/* =========================================
   Mobile: <= 498px — smaller nav items
   ========================================= */
@media (max-width: 498px) {
  .sidebar {
    gap: 20px;
    justify-content: center;
  }

  .nav-header {
    padding: 12px 0 8px 12px;
  }

  .nav-header.experience {
    padding: 12px 0 8px 12px;
  }

  .nav-item {
    height: 29px;
    padding: 7px 12px 5px;
  }

  .sidebar-bottom {
    align-content: flex-end;
    align-items: flex-end;
  }
}
