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

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

body {
  background-color: #000;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: #fff;
}
/* ========================
   NAV  (links over video — no bar, no brand)
======================== */
nav.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  background-color: transparent;
}

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

.nav__list--left {
  justify-self: start;
}

.nav__list--right {
  justify-self: end;
}

.nav__wordmark {
  justify-self: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.nav__wordmark:hover {
  opacity: 0.6;
}

.nav__list a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  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: #fff;
  transition: width 0.3s ease;
}

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

/* ========================
   NAV — PROJECTS DROPDOWN (Client / Personal, staggered reveal)
   No panel here — nav is transparent over black, so the links themselves
   simply stagger in/out as plain white text, matching the page's look.
======================== */
.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;
  padding-top: 14px;
  background-color: transparent;
  opacity: 0;
  pointer-events: none;
  /* closing: stay clickable/visible until the staggered links finish lifting back up */
  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;   /* opening: appear instantly so the links can stagger in */
}

.nav__submenu li {
  list-style: none;   /* Safari quirk: list-style:none on the parent <ul> alone isn't always enough */
  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);
}

/* closing (default state): reverse order — last item lifts back up first */
.nav__submenu li:nth-child(1) { transition-delay: 0.15s; }
.nav__submenu li:nth-child(2) { transition-delay: 0.05s; }

/* opening: original order — Client first, Personal second */
.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;
}

/* ========================
   COMING SOON
======================== */
.coming-soon-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  z-index: 10;
  position: relative;
}

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

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

  nav.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 12px;
    column-gap: 16px;
    padding: 14px 16px;
  }

  .nav__wordmark {
    order: -1;
    flex-basis: 100%;
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .nav__list { column-gap: 16px; }

  /* Projects dropdown on mobile — same staggered, transparent look as desktop,
     just resized for touch and narrower screens */
  .nav__submenu {
    padding: 0;
    row-gap: 12px;
  }

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