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

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

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

/* ========================
   NAV BAR
======================== */
.nav__bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: #f2f1ef;
  z-index: 199;
}

/* ========================
   NAV
======================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  pointer-events: none;
}

.nav__toggle,
.nav__work-toggle {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d3530;
  background: none;
  border: none;
  cursor: none;
  line-height: 1;
  padding: 0;
  position: relative;
  transition: opacity 0.3s ease;
  pointer-events: all;
}

.nav__toggle::after,
.nav__work-toggle::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #3d3530;
  transition: width 0.3s ease;
}

.nav__toggle:hover,
.nav__work-toggle:hover {
  opacity: 0.5;
}

.nav__toggle:hover::after,
.nav__work-toggle:hover::after {
  width: 100%;
}

/* ========================
   WORK DROPDOWN
======================== */
.nav__work {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 24px 40px 0 32px;
  pointer-events: all;
  background-color: transparent;
  transition: background-color 0.4s linear;
}

.nav__work.is-open {
  background-color: #f2f1ef;
}

.nav__work .nav__drop {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s linear;
  padding: 0;
}

.nav__work.is-open .nav__drop {
  max-height: 100px;
  padding-bottom: 16px;
}

.nav__work-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin-top: 10px;
}

.nav__work-links li a {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d3530;
  text-decoration: none;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(-6px);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: letter-spacing 0.2s ease, font-size 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav__work.is-open .nav__work-links li a {
  opacity: 1;
  transform: translateY(0);
}

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

.nav__work-links li a:hover {
  font-size: 10px;
  letter-spacing: 0.02em;
  opacity: 0.5;
}

.nav__work-links li a:hover::after {
  width: 100%;
}

.nav__work.is-open .nav__work-links li:nth-child(1) a { transition-delay: 0.1s; }
.nav__work.is-open .nav__work-links li:nth-child(2) a { transition-delay: 0.2s; }
.nav__work-links li:nth-child(1) a                    { transition-delay: 0s; }
.nav__work-links li:nth-child(2) a                    { transition-delay: 0s; }

/* ========================
   MENU DROPDOWN
======================== */
.nav__menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  padding: 24px 32px 0;
  text-align: right;
  pointer-events: all;
  background-color: transparent;
  transition: background-color 0.4s linear;
}

.nav__menu.is-open {
  background-color: #f2f1ef;
}

.nav__menu .nav__drop {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s linear;
  padding: 0;
}

.nav__menu.is-open .nav__drop {
  max-height: 240px;
  padding-bottom: 16px;
}

.nav__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin-top: 12px;
}

.nav__links li a {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d3530;
  text-decoration: none;
  position: relative;
  opacity: 0;
  white-space: nowrap;
  transform: translateY(-6px);
  transition: letter-spacing 0.2s ease, font-size 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav__menu.is-open .nav__links li a {
  opacity: 1;
  transform: translateY(0);
}

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

.nav__links li a:hover {
  font-size: 10px;
  letter-spacing: 0.02em;
  opacity: 1;
}

.nav__links li a:hover::after {
  width: 100%;
}

.nav__menu.is-open .nav__links li:nth-child(1) a { transition-delay: 0.1s; }
.nav__menu.is-open .nav__links li:nth-child(2) a { transition-delay: 0.2s; }
.nav__menu.is-open .nav__links li:nth-child(3) a { transition-delay: 0.3s; }
.nav__menu.is-open .nav__links li:nth-child(4) a { transition-delay: 0.4s; }
.nav__links li:nth-child(1) a                    { transition-delay: 0s; }
.nav__links li:nth-child(2) a                    { transition-delay: 0s; }
.nav__links li:nth-child(3) a                    { transition-delay: 0s; }
.nav__links li:nth-child(4) a                    { transition-delay: 0s; }

/* ========================
   PORTFOLIO TITLE
======================== */
.portfolio-title {
  position: fixed;
  top: 12px;
  left: 0%;
  width: 100%;
  z-index: 300;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d3530;
  text-align: center;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ========================
   PROJECT TITLE
======================== */
.project-title {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.project-title__name {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-title__year {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-align: center;
  margin-top: 4px;
}

/* ========================
   PROJECT IMAGES
======================== */
.project-images {
  position: relative;
  width: 100%;
  min-height: 300vh;
  padding: 60px 0;
}

.img-block {
  position: absolute;
}

.img-block img {
  display: block;
  width: 38vw;
  height: auto;
  object-fit: unset;
}

.img-block.left  { left: 1%; }
.img-block.right { right: 1%; }

.img-block.top      { top: 5vh; }
.img-block.mid-high { top: 55vh; }
.img-block.mid-low  { top: 105vh; }
.img-block.bottom   { top: 155vh; }
.img-block.lower    { top: 205vh; }

/* ========================
   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%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
  z-index: 9999;
}

/* ========================
   BACK LINK
======================== */
.back-link {
  display: inline-block;
  position: relative;
  z-index: 201;
  margin: 68px 0 8px 32px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #888;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.back-link::before {
  content: '← ';
}

.back-link:hover {
  color: #3d3530;
  border-color: #3d3530;
}

/* ========================
   FOOTER
======================== */
footer {
  border-top: 1px solid #ddd;
  padding: 40px 48px;
  display: flex;
  justify-content: center;
}

footer a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #888;
  transition: color 0.2s;
}

footer a:hover {
  color: #3d3530;
}
