/* ========================
   GLOBAL
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background-color: #f2f1ef;
  color: #1a1a1a;
}

/* ========================
   NAV  (split row, centered brand)
======================== */
nav.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: #f2f1ef;
}

.nav__brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d3530;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.nav__brand:hover { opacity: 0.6; }

.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  column-gap: 24px;
}

.nav__list a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d3530;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.nav__list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #3d3530;
  transition: width 0.3s ease;
}

.nav__list a:hover { opacity: 0.5; }
.nav__list a:hover::after { width: 100%; }

/* ========================
   NAV — PROJECTS DROPDOWN (Client / Personal, staggered reveal)
======================== */
.nav__item--dropdown {
  position: relative;
}

.nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
  margin-top: 0;
  padding: 20px 22px 16px;
  background-color: #f2f1ef;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease 0.4s;
  z-index: 10;
}

.nav__item--dropdown:hover .nav__submenu,
.nav__item--dropdown.is-open .nav__submenu {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav__submenu li {
  list-style: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav__item--dropdown:hover .nav__submenu li,
.nav__item--dropdown.is-open .nav__submenu li {
  opacity: 1;
  transform: translateY(0);
}

.nav__submenu li:nth-child(1) { transition-delay: 0.15s; }
.nav__submenu li:nth-child(2) { transition-delay: 0.05s; }

.nav__item--dropdown:hover .nav__submenu li:nth-child(1),
.nav__item--dropdown.is-open .nav__submenu li:nth-child(1) { transition-delay: 0.05s; }
.nav__item--dropdown:hover .nav__submenu li:nth-child(2),
.nav__item--dropdown.is-open .nav__submenu li:nth-child(2) { transition-delay: 0.15s; }

.nav__submenu a {
  font-size: 10px;
}

/* ========================
   PERSONAL PAGE — SPLIT LAYOUT
   Left: video, sticky for as long as the booklet list scrolls.
   Right: scrolling booklet list. Releases at the end so the
   footer below can run full-width and centered.
======================== */
.personal-split {
  position: relative;
}

.split-row {
  display: flex;
  align-items: flex-start;
}

.video-panel {
  position: sticky;
  top: 0;
  width: 50vw;
  height: 100vh;
  flex-shrink: 0;
  z-index: 1;
  overflow: hidden;
  background-color: #000;
}

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

.video-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
  z-index: 2;
}

.content-panel {
  position: relative;
  z-index: 2;
  width: 50vw;
  min-height: 100vh;
  background-color: #f2f1ef;
  padding: 130px 60px 60px;
}

.personal-page__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8178;
  margin-bottom: 40px;
}

.personal-page__clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* ========================
   PROJECT LIST (single column, vertical scroll on the right)
======================== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 640px;
  margin: 0 auto;
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.project-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-item a {
  display: block;
  overflow: hidden;
}

.project-item a img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* slight zoom in on hover, eases back out when the mouse leaves */
.project-item a:hover img {
  transform: scale(1.06);
}

.project-item p {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-align: center;
}

/* ========================
   FOOTER (seamless, full width — sits below the split layout once
   the sticky video releases, centered across the whole page)
======================== */
.personal-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  background-color: #f2f1ef;
  padding: 24px 40px 32px;
  text-align: center;
}

.personal-footer__mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 2.5vw, 24px);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(61, 53, 48, 0.12);
  margin-bottom: 8px;
  user-select: none;
}

.personal-footer__copy {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8178;
}

/* ========================
   CURSOR
======================== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: #3d3530;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
  .nav__list { column-gap: 18px; }
}

@media (max-width: 768px) {
  .cursor { display: none; }

  nav.nav {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 16px;
    padding: 10px 20px;
  }

  .nav__brand {
    position: static;
    transform: none;
    order: -1;
    flex-basis: 100%;
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .nav__list {
    justify-content: center;
    column-gap: 16px;
  }

  .nav__submenu {
    padding: 16px 18px 14px;
    row-gap: 12px;
  }

  .nav__submenu a {
    font-size: 11px;
    padding: 4px 2px;
  }

  .split-row {
    display: block;
  }

  .video-panel {
    display: none;
  }

  .content-panel {
    width: 100%;
    padding: 110px 20px 40px;
  }

  .project-list {
    gap: 40px;
  }

  .personal-footer {
    padding: 40px 20px 60px;
  }
}