@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto+Mono:wght@100;200;300;400;500;600;700&display=swap');


html {
  font-size: clamp(14px, 0.85vw, 20px);
}

body {
  margin: 0;
  background: #d8d8d8;
  font-family: 'Roboto Mono', monospace;
  cursor: auto;
  overflow: hidden;
}

body.menu-open {
  overflow: auto;
}

.vertical-line {
  position: fixed;
  top: 0;
  width: 0.5px;
  height: 100vh;
  background: #212121;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1001;
}

.vertical-line.left {
  left: 5vw;
}

.vertical-line.right {
  right: 5vw;
}

.horizontal-lines-wrapper,
.horizontal-lines-wrapper-bottom {
  position: fixed;
  left: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  background-color: #d8d8d8;
  box-sizing: border-box;
}

.horizontal-lines-wrapper {
  top: 5rem; /* 80px */
  padding-top: 0;
}

.horizontal-lines-wrapper-bottom {
  bottom: 0;
  padding-bottom: 2.5rem; /* 40px */
}

.horizontal-line {
  position: relative;
  z-index: 1001;
  width: 100%;
  height: 0.5px;
  margin: 0;
  background: #212121;
  opacity: 0.3;
}

.selected-work-row {
  width: 100%;
  min-height: 0.75rem; /* 12px */
  margin: 0.25rem 0; /* 4px 0 */
  padding: 0 5vw;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-work-text {
  padding: 0 0.3125rem; /* 5px */
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  letter-spacing: -0.03125rem; /* -0.5px */
  color: #212121;
}

.selected-work-text.left {
  margin-left: 0;
}

.selected-work-text.right {
  margin-right: 0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 5rem; /* 80px */
  padding: 0.625rem 5vw 0; /* 10px 5vw 0 */
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1.25rem; /* 20px */
  background-color: #d8d8d8;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.header .left {
  width: auto;
  height: 4.375rem; /* 70px */
  padding-left: 0.3125rem; /* 5px */
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.brand-logo {
  display: block;
  height: 3rem; /* 40px */
  width: auto;
}

.header .center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem; /* 14px */
  line-height: 1.1;
  cursor: default;
}

.header .title {
  font-weight: 600;
  color: #212121;
  letter-spacing: -0.03125rem; /* -0.5px */
}

.header .subtitle {
  font-weight: 300;
  color: #757575;
  letter-spacing: -0.03125rem; /* -0.5px */
}

.header .right {
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.hamburger-btn {
  display: none;
}

.header .nav-btn {
  position: relative;
  width: 3.75rem; /* 60px */
  height: 1.5625rem; /* 25px */
  margin-left: 0.625rem; /* 10px */
  margin-right: 0.3125rem; /* 5px */
  padding-left: 1.25rem; /* 20px */
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: none;
  color: #757575;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem; /* 12px */
  font-weight: 300;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03125rem; /* 0.5px */
  cursor: pointer;
  z-index: 5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header .nav-btn::before {
  content: '';
  position: absolute;
  left: 0.4375rem; /* 7px */
  top: 50%;
  width: 0.375rem; /* 6px */
  height: 0.375rem; /* 6px */
  background-color: #000000;
  transform: translateY(-50%) scale(0);
  transform-origin: center center;
  opacity: 0;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.header .nav-btn:hover,
.header .nav-btn:focus-visible {
  color: #212121;
}

.header .nav-btn:hover::before,
.header .nav-btn:focus-visible::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

.header .nav-btn.pressed {
  transform: scale(0.95);
}

.nav-angles-container {
  display: none;
}

.scroll-mask-wrapper {
  position: fixed;
  top: calc(5rem + 1.375rem); /* 80px + 22px */
  bottom: 2.5rem; /* 40px */
  left: 0;
  width: 100%;
  overflow-y: auto;
  display: flex;
}

.content-container {
  width: 100%;
  padding-top: 6.5dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.film-project-container {
  width: 85dvw;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8%;
}

.film-card {
  padding-right: 2dvw;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

.film-card img,
.film-card video,
.film-card .film-video {
  height: clamp(33.0625rem, 67dvh, 47.5rem); /* 529px, 760px */
  aspect-ratio: 353 / 529;
  width: auto;
  object-fit: cover;
  border-radius: 0.3125rem; /* 5px */
}

.film-desc {
  max-width: 37.5rem; /* 600px */
  height: 33.0625rem; /* 529px */
  max-height: 33.0625rem; /* 529px */
  padding-left: 2%;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  word-break: break-word;
}

.film-title {
  margin: 0 0 1.5rem 0; /* 24px */
  font-family: 'Inter', sans-serif;
  font-size: 3.75rem; /* 60px */
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.125rem; /* -2px */
  color: #212121;
}

.film-desc-main {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem; /* 16px */
  font-weight: 300;
  line-height: 1.5;
  text-align: justify;
  color: #212121;
}

.film-meta-grid {
  width: 100%;
  margin-top: auto;
  padding-top: 1.875rem; /* 30px */
  display: flex;
  flex-direction: column;
}

.meta-item {
  padding: 0.875rem 0; /* 14px 0 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.0625rem solid #212121; /* 1px */
}

.meta-label,
.meta-value {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.625rem; /* 10px */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03125rem; /* 0.5px */
  color: #212121;
}

.full-width-video-wrapper {
  width: 85dvw;
  margin-top: 10dvh;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.video-aspect-ratio-container {
  position: relative;
  width: 100%;
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding-top: 56.25%;
  height: auto;
}

.video-aspect-ratio-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #d8d8d8;
}

.vimeo-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #d8d8d8;
  overflow: hidden;
}

.vimeo-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.project-navigation {
  width: 85dvw;
  margin-top: 2.8125rem; /* 45px */
  padding-top: 2.5rem; /* 40px */
  padding-bottom: 8vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5vw;
  border-top: 0.0625rem solid rgba(33, 33, 33, 0.3); /* 1px */
}

.project-navigation .nav-link {
  width: 9.375rem; /* 150px */
  height: 2.1875rem; /* 35px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.625rem; /* 10px */
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
  background-color: #212121;
  color: #d8d8d8;
  border: 0.0625rem solid #212121; /* 1px */
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.project-navigation .nav-link:hover {
  background-color: #d8d8d8;
  color: #212121;
  border-color: #212121;
}

#cursor-ball {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  padding: 0.375rem 0.625rem; /* 6px 10px */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #ffffff;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.625rem; /* 10px */
  letter-spacing: 0;
  border-radius: 0;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0s ease;
}

#cursor-ball span {
  opacity: 1;
}

#cursor-ball.visible {
  opacity: 1;
}

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 4.6875rem; /* 75px */
  transform: translate(-50%, 0.625rem); /* 10px */
  background-color: #000000;
  color: #d8d8d8;
  padding: 0.375rem 0.875rem; /* 6px 14px */
  border-radius: 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.625rem; /* 10px */
  letter-spacing: 0.125rem; /* 2px */
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}

.scroll-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.scroll-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 0.625rem);
  pointer-events: none;
}


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

@media (min-width: 769px) {
  .film-title,
  .film-desc-main,
  .meta-item {
    opacity: 0;
    transform: translateX(-1.25rem); /* -20px */
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1),
      transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .film-title.is-visible,
  .film-desc-main.is-visible,
  .meta-item.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  .film-desc-main.is-visible {
    transition-delay: 0.1s;
  }

  .meta-item.is-visible:nth-of-type(1) {
    transition-delay: 0.2s;
  }

  .meta-item.is-visible:nth-of-type(2) {
    transition-delay: 0.3s;
  }

  .meta-item.is-visible:nth-of-type(3) {
    transition-delay: 0.4s;
  }
}


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

  #cursor-ball {
    display: none !important;
  }

  .selected-work-text {
    padding: 0 5px;
    font-size: 12px;
    letter-spacing: -0.5px;
  }

  .header {
    height: 70px;
    padding: 5px 5vw 0;
    column-gap: 20px;
  }

  .header .left {
    height: 60px;
    display: flex;
    align-items: center;
  }

  .brand-logo {
    height: 40px;
    width: auto;
  }

  .header .center.desktop-only {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger-btn {
    position: relative;
    width: 30px;
    height: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .hamburger-btn span {
    width: 100%;
    height: 2px;
    background: #212121;
    border-radius: 10px;
    transform-origin: center;
    transition: all 0.3s ease-in-out;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .header {
    background-color: transparent;
    z-index: 1003;
  }

  body.menu-open .hamburger-btn span {
    background: #ffffff;
  }

  body.menu-open .hamburger-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  body.menu-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  body.menu-open .vertical-line {
    z-index: 1001;
  }

  body.menu-open .brand-logo {
    filter: invert(1) brightness(2);
    transition: filter 0.3s ease;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    width: 100%;
    height: 100%;
    padding: 110px 5vw 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: #212121;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-overlay.active {
    visibility: visible;
    pointer-events: auto;
  }

  .menu-top,
  .menu-bottom {
    flex-shrink: 0;
  }

  .mobile-menu-overlay .center.mobile-only {
    padding: 0;
  }

  .mobile-menu-overlay .center.mobile-only .title {
    color: white;
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    font-weight: 700;
  }

  .mobile-menu-overlay .center.mobile-only .subtitle {
    margin-top: 0;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 300;
    opacity: 0.6;
  }

  .menu-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5vh;
  }

  .mobile-nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 0;
  }

  .mobile-menu-overlay .nav-btn {
    width: 100%;
    height: auto;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    text-align: left;
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    color: white;
    text-decoration: none;
    text-transform: none;
  }

  .horizontal-lines-wrapper {
    top: 70px;
    padding-top: 0;
  }

  .scroll-mask-wrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .content-container {
    width: 100%;
    padding-top: 110px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }

  .film-project-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .film-card {
    order: 1;
    width: 90dvw;
    height: auto;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
  }

  .film-card img,
  .film-card video,
  .film-card .film-video {
    width: 100%;
    height: 75dvh;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }

  .film-desc {
    order: 2;
    width: 85vw;
    height: auto;
    max-height: none;
    padding-left: 0;
    padding-bottom: 0;
  }

  .film-title {
    margin-bottom: 0;
    font-size: 50px;
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .film-desc-main {
    margin-top: 30px;
    font-size: 15px;
  }

  .film-meta-grid {
    margin-top: 10px;
  }

  .full-width-video-wrapper {
    width: 90vw;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .film-title,
  .film-desc-main,
  .meta-item,
  .full-width-video-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .film-title.is-visible,
  .film-desc-main.is-visible,
  .meta-item.is-visible,
  .full-width-video-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .film-desc-main.is-visible {
    transition-delay: 0.1s;
  }

  .meta-item.is-visible:nth-of-type(1) {
    transition-delay: 0.2s;
  }

  .meta-item.is-visible:nth-of-type(2) {
    transition-delay: 0.3s;
  }

  .meta-item.is-visible:nth-of-type(3) {
    transition-delay: 0.4s;
  }

  .full-width-video-wrapper.is-visible {
    transition-delay: 0.2s;
  }

  .mobile-scroll-hint {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform: translate(-50%, 10px);
    background-color: #000000;
    color: #d8d8d8;
    padding: 6px 14px;
    border-radius: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1001;
  }

  .mobile-scroll-hint.visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .mobile-scroll-hint.hidden {
    opacity: 0;
  }

  .horizontal-lines-wrapper-bottom {
    padding-bottom: 2vh;
  }

  .horizontal-lines-wrapper-bottom .selected-work-row {
    flex-direction: row;
    justify-content: space-between;
  }

  .horizontal-lines-wrapper-bottom .selected-work-text.left {
    margin-left: 0 !important;
  }

  .horizontal-lines-wrapper-bottom .selected-work-text.right {
    margin-right: 0 !important;
  }

  .project-navigation {
    width: 85vw;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 30px;
    flex-direction: column;
    gap: 15px;
  }

  .project-navigation .nav-link {
    width: 100%;
    height: 48px;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #212121;
    color: #d8d8d8;
    border-color: #212121;
  }
}
