@font-face {
  font-family: "Chivo";
  src: url("assets/chivo/Chivo-Light.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: #f2f2f2;
  font-family: "Chivo", sans-serif;
  font-weight: 200;
  cursor: url("assets/mousereg.svg") 8 8, auto;
}

a,
button,
.project-card,
.project-image-link {
  cursor: url("assets/mouseclick.svg") 8 8, pointer;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

/* PAGE LABEL */
.page-label {
  margin: 28px 0 8px 32px;
  font-size: 1rem;
  color: #d0d0d0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* MAIN BLACK FRAME */
.site-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

.sidebar-time {
  font-size: 0.8rem;
  line-height: 1.22;
  color: #bdbdbd;
  max-width: 250px;
  margin-top: auto;
  margin-bottom: 14px;
}

.sidebar {
  position: fixed;
  top: 20px;
  left: 0px;
  width: 380px;
  height: calc(100vh - 80px);
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0px 16px 0px 40px;
  z-index: 5;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.site-title {
  display: inline-block;
  position: relative;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 20px;
  min-height: 20px;
  line-height: 1;
}

.intro {
  font-size: 0.92rem;
  line-height: 1.18;
  color: #d9d9d9;
  margin-bottom: 42px;
  max-width: 350px; /* instead of 100% */
}

.intro p {
  margin: 0 0 14px 0;
}

/* .intro-focus { opacity: 0.7; } */
.intro-meta { opacity: 0.6; }

.project-list {
  border-top: 1px solid #cfcfcf;
  width: 100%;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  border-bottom: 1px solid #cfcfcf;
  padding: 8px 0 9px 0;
  font-size: 0.88rem;
  line-height: 1.1;
  min-height: 28px;
}

.project-link .label-default {
  flex: 1;
}

.project-link.active {
  color: #4da3ff;
}

.sidebar-bottom {
  font-size: 0.8rem;
  line-height: 1.22;
  color: #bdbdbd;
  max-width: 250px;
  margin-top:50px;
}

/* RIGHT CONTENT */
.content {
  margin-left: 380px;
  width: calc(100% - 380px);
  height: 100%;
  overflow-y: auto;
  padding: 40px 40px 60px 40px; /* was 60px on the right */
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

/* TOP NAV */
.top-nav {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 0;
}

.top-nav a {
  font-size: 1rem;
  line-height: 1;
  color: #f0f0f0;
}

.top-nav a::after {
  content: ",";
  margin-right: 4px;
}

.top-nav a:last-child::after {
  content: "";
  margin-right: 0;
}

.top-nav a {
  font-size: 1rem;
  line-height: 1;
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.top-nav a:hover {
  color: #4da3ff;
  text-decoration: underline;
}

.top-nav a.active {
  color: #4da3ff;
  text-decoration: underline;
}

/* PROJECT FEED */
.project-feed {
  width: 100%;
  padding-top: 0;
}

.project-card {
  margin-bottom: 22px;
  margin-top:20px;
  max-width: 1180px;
}

.project-card[data-project="lately"] .project-image-link img {
  object-position: center 0%;
}

.project-card[data-project="stalked"] .project-image-link img {
  object-position: center 20%;
  scale:100%;
}

.project-card[data-project="activity-log"] .project-image-link img {
  object-position: center 5%;
  scale:120%;
}

.project-image-link {
  display: block;
  width: 100%;
  background: #111;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.project-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-link video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-meta {
  margin-top: 15px;
  position: relative;
  min-height: 38px;
  max-width: 980px;
  font-size: 0.95rem;
  line-height: 1.02;
  color: #e8e8e8;
}

.meta-title {
  color: #e8e8e8;
}

.meta-subtitle {
  color: #9f9f9f;
  font-size: 0.95rem;
  margin-top: 4px;
}

.site-title .label-default {
  transition: color 0.15s ease;
}

.site-title:hover .label-default {
  color: #4da3ff;
}

/* HOVER REVEALS */
.hover-reveal,
.hover-description {
  position: relative;
}

.label-default,
.label-hover,
.meta-default,
.meta-hover {
  transition: opacity 0.16s ease;
}

.label-hover,
.meta-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  color: #9f9f9f;
}

/* project cards: swap title/subtitle with description */
.hover-description:hover .meta-default {
  opacity: 0;
}

.hover-description:hover .meta-hover {
  opacity: 1;
}

/* SECTION SPACING */
.alt-section {
  margin-top: 28px;
}

/* tablet */
@media (max-width: 1100px) {
  .play-gallery {
    column-count: 2;
    column-gap: 18px;
  }

  .play-item {
    margin-bottom: 18px;
  }

}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-small {
    position: static;
    width: 70%;
    margin-top: 20px;
  }
}

/* mobile */
@media (max-width: 768px) {
  .play-gallery {
    column-count: 1;
    column-gap: 0;
    padding-top: 56px;
  }

  .play-caption {
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .play-gallery {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 18px;
  }

  .play-item.span-6,
  .play-item.span-7,
  .play-item.span-8,
  .play-item.span-12 {
    grid-column: span 8;
  }

  .play-item.span-3,
  .play-item.span-4,
  .play-item.span-5 {
    grid-column: span 4;
  }
}

@media (max-width: 768px) {
  .play-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 56px;
  }

  .play-item,
  .play-item.span-3,
  .play-item.span-4,
  .play-item.span-5,
  .play-item.span-6,
  .play-item.span-7,
  .play-item.span-8,
  .play-item.span-12 {
    grid-column: span 1;
  }

  .play-caption {
    font-size: 0.9rem;
  }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .sidebar {
    width: 320px;
  }

  .content {
    margin-left: 320px;
    width: calc(100% - 320px);
    padding: 88px 28px 40px 28px;
  }
}

/* HOVER REVEALS */
.hover-reveal,
.hover-description {
  position: relative;
}

.label-default,
.label-hover,
.meta-default,
.meta-hover {
  transition: opacity 0.16s ease;
}

.label-hover,
.meta-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  color: #9f9f9f;
}

.hover-reveal:hover .label-hover,
.hover-description:hover .meta-hover {
  opacity: 1;
}

/* SECTION SPACING */
.alt-section {
  margin-top: 28px;
}

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
  .sidebar {
    width: 300px;
    padding: 0 16px 0 24px;
  }

  .intro {
    max-width: 250px;
  }

  .content {
    margin-left: 300px;
    width: calc(100% - 300px);
    padding: 28px 24px 48px 24px;
  }

  .top-nav {
    top: 20px;
    right: 24px;
  }

  .project-card {
    max-width: 100%;
  }

  .project-meta {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-wrapper {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    background: #000;
    z-index: 31;
  }

  .intro,
  .project-list,
  .sidebar-bottom {
    display: none;
  }

  .site-title {
    display: block;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1;
  }

  .content {
    margin-left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 72px 16px 40px 16px;
  }

  .top-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: auto;
    justify-content: flex-end;
    padding: 12px 16px;
    background: transparent;
    z-index: 32;
  }

  .top-nav a {
    font-size: 0.9rem;
  }

  .project-feed {
    width: 100%;
    padding-top: 0;
  }

  .project-card {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .project-image-link {
    aspect-ratio: 1.45 / 1;
  }

  .project-image-link img,
  .project-image-link video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-meta {
    max-width: 100%;
    min-height: auto;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.08;
  }

  .meta-title {
    font-size: 0.92rem;
  }

  .meta-subtitle {
    font-size: 0.9rem;   /* match body */
    opacity: 0.7;        /* instead of shrinking it */
    margin-top: 3px;
  }

  .meta-hover {
    position: static;
    opacity: 1;
    width: auto;
    margin-top: 6px;
    color: #9f9f9f;
  }

  .hover-description:hover .meta-default {
    opacity: 1;
  }

  .hover-description:hover .meta-hover {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 10px 12px;
  }

  .content {
    padding: 40px 12px 32px 12px;
  }

  .top-nav {
    padding: 10px 12px;
  }

  .top-nav a {
    font-size: 0.8rem;
  }

  .site-title {
    font-size: 0.8rem;
  }

  .project-image-link {
    aspect-ratio: 1.3 / 0.8;
  }

  .meta-title {
    font-size: 0.8rem;
  }

  .meta-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
  }
}